Re: Wget help

"Colin S. Miller" <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization SunSITE.dk - Supporting Open source
Message-ID <[email protected]>
Pazit & Nadav wrote:
> Hello,
> 
>  
> 
> I downloaded the last version that includes SSl support.
> 
>  
> 
> I run it with username and password and it works.
> 
>  
> 
> I want to continue and pass to others papers and I have problem, because 
> now there is no username and password and in the source I didn’t find 
> any clue for session ID.
> 
>  
> 

I assume you are accessing a login page, which then sets some cookies,
and these authorise you to access the rest of the site.

According to wget's man page --load-cookies and --save-cookies
will read and save cookies, however, session cookies aren't saved.

I'd suggest deleting the saved login page, before rerunning wget.
This will force wget to download the login page again,
and get the cookies.

If you don't want to do that,
it should be possible to use --save-headers to capture the cookies
sent to you, and then use perl to convert them into a cookies.txt file.
Doing so is left as an exercise to the interested reader.


HTH,
Colin S. Miller
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.