I'm trying to mirror a site with a login using wget and post-data but an receiving error 405 codes...
The site doesn't use cookies to handle logging in, so I have to pass my username/password with the --post-data option to the login script. This seems to work fine and it starts mirroring the page, but then ends abruptly.
Here's an example retreival from wget with the headers:
Via google I found the problem was probably related to sending post data on every hit. So here's my question:
Is there a way to have wget send the post-data string only on the first page (login script) retreival?
Edit: clarity
The site doesn't use cookies to handle logging in, so I have to pass my username/password with the --post-data option to the login script. This seems to work fine and it starts mirroring the page, but then ends abruptly.
Here's an example retreival from wget with the headers:
--00:54:05-- http://www.somesite.com/some/file.gif
=> `www.somesite.com/some/file.gif'
Connecting to www.somesite.com[xx.xx.xx.xx]:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 405 Method Not Allowed
2 Date: Mon, 18 Apr 2005 06:16:02 GMT
3 Server: Apache/1.3.31 (Unix) mod_ssl/2.8.20 OpenSSL/0.9.7a mod_perl/1.29 PHP/4.3.8
4 Allow: GET, HEAD, OPTIONS, TRACE
5 Connection: close
6 Content-Type: text/html; charset=iso-8859-1
00:54:06 ERROR 405: Method Not Allowed.
Via google I found the problem was probably related to sending post data on every hit. So here's my question:
Is there a way to have wget send the post-data string only on the first page (login script) retreival?
Edit: clarity