> I'd like to automate a download that has to happen a number of times
> a week, and wget seems to be the best candidate for the job.
> Unfortunately, the website requires a login to get at the file I'm
> interested in, and once you're logged in, the site sets a number of
...

Just as a followup, wget was actually doing exactly what it should with
the cookies, which was nice.  The problem turned out to be that the
site was very picky about what it saw in the User-Agent field.  Gar.
So this is what worked:

wget --cookies=on --http-user=user --http-passwd=passwd \
   --user-agent="Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" \
   https://www.site.com/blah/login.asp \
   https://www.site.com/blah/filetoget.txt

Blah.  Anyway, thanks for listening.

-CJ

-- 
WOW: Nyctitropic         |  "Let us rain some DOOM upon the filthy heads
apocalyptech.com/wow     |             of our DOOMED enemies!"
[EMAIL PROTECTED]     |                    - Zim

Reply via email to