I am currrently using the following command to retrieve data from a site:
wget http://www.example.com --user=joe --password=schmoe --auth-no-challenge
I expand this to be recursive, however, my understanding is that this will resend the HTTP Auth credentials on each request.
Hence, is it possible to run the Basic HTTP Auth once, capture the cookies, and then trigger a recursive load with those cookies?
This does not appear to work:
wget --save-cookies=cookies.txt --user=joe --password=schmoe --auth-no-challenge http://www.example.com
Followed by:
wget --load-cookies=cookies.txt -r -p http://www.example.com/pages.html