-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HARPREET SAWHNEY wrote: > Hi, > > Thanks for the prompt response. > > I am using > > GNU Wget 1.10.2 > > I tried a few things on your suggestion but the problem remains. > > 1. I exported the cookies file in Internet Explorer and specified > that in the Wget command line. But same error occurs. > > 2. I have an open session on the site with my username and password. > > 3. I also tried running wget while I am downloading a file from the > IE session on the site, but the same error.
Sounds like you'll need to get the appropriate cookie by using Wget to login to the website. This requires site-specific information from the user-login form page, though, so I can't help you without that. If you know how to read some HTML, then you can find the HTML form used for posting username/password stuff, and use wget --keep-session-cookies --save-cookies=cookies.txt \ - --post-data='username=foo&password=bar' ACTION Where ACTION is the value of the form's action field, USERNAME and PASSWORD (and possibly further required values) are field names from the HTML form, and FOO and BAR is the username/password. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer, and GNU Wget Project Maintainer. http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFId+w97M8hyUobTrERAmLsAJ91231iGeO/albrgRuuUCRp8zFcnwCgiX3H fDp2J2oTBKlxW17eQ2jaCAA= =Khmi -----END PGP SIGNATURE-----