Hello,

[I'm not subscribed, so please CC me in any responses.  Thanks]

I'm new to wget. It seems simple enough when dealing with sites and
pages not requiring auth but, I would like to use wget to download files
on a site that requires I authenticate.  I'm having a bit of trouble.
I'm using things like:

wget --save-cookies cookies.txt \
     --keep-session-cookies \
     --post-data 'txtUserID=foo&password=bar' \
     --no-check-certificate \
     https://somesite.com/Logon.aspx

wget --load-cookies cookies.txt \
     --no-check-certificate \
     -p https://somesite.com/articles.aspx?targetPage=Summary

I keep seeing this:

HTTP request sent, awaiting response... 302 Redirect

...after the second wget call.  At which point it downloads the login
page again.  What might I be doing wrong here?

Any advice?

-- 
Regards,
Eric


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to