bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Fwd: Saving Cookies issue


From: Tim Ruehsen
Subject: Re: [Bug-wget] Fwd: Saving Cookies issue
Date: Tue, 02 Aug 2016 17:14:32 +0200
User-agent: KMail/5.2.3 (Linux/4.6.0-1-amd64; KDE/5.23.0; x86_64; ; )

On Tuesday, August 2, 2016 8:38:36 PM CEST Mahfuzur Rahman wrote:
> My question was (and still stands) "Is it possible to save cookies for that
> site using wget?"
> I tried following two commands as you suggested , still nothing functional
> comes out.

> wget -d -o report1.txt --user-agent="Mozilla/5.0 (X11; Linux x86_64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
> --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
> --header="Accept-Language: en-GB,en;q=0.8,en-US;q=0.6,bn;q=0.4"
> --header="Accept-Encoding: gzip, deflate, sdch" --header="Connection:
> keep-alive" --keep-session-cookies --save-cookies cookie.txt --post-data
> 'user_name=My_user_name&user_password=My_pass'
> http://www.cinehub24.com/auth/login
> 
> wget -d -o report2.txt --user-agent="Mozilla/5.0 (X11; Linux x86_64)
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
> --keep-session-cookies --save-cookies cookie.txt --post-data
> 'user_name=My_user_name&user_password=My_pass'
> http://www.cinehub24.com/auth/login

That was the first and "easy" try.

Of course there *might* be scripts running in the browser that do requests and 
pull in more cookies. Wget can't execute scripts.

To find out, you have to debug the communication between browser ans server. 
Wireshark does a good job (when using plain text).
But the Firebug extension (for Firefox) is also a good choice.
Not sure about Chrome/Chromium.

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]