Hi I've been using wget to recursively download the output of a CGI script on a server, together with any documents linked to by the output of that CGI script - and then to use -k to create a locally linked version.
Due to the length of data sent to the CGI script, wget needs to be invoked with --post-file It seems that wget sends this post data to all the URLs it recursively downloads - not just the base URL. Unfortunately this stings me somewhat, as one of the webservers I need to download the linked files from refuses post requests. (Even if I can get this changed, it seems wrong to be sending post requests designed for one page to another one) Is there any way to get wget to only use the post data for the first file downloaded? I couldn't find any in the documentation - in fact there seems to be nothing in the documentation regarding the interaction of recursive downloading with post data. It would be great to see the current behaviour documented somewhere. Alternatively, if anyone can suggest any workarounds, that'd be much appreciated. I need to convert the links, so just downloading the first file using post, and then using that as wget's input (using -i) won't work. Stuart Moore