bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Can someone please help with wget log-in ? apparently I'm


From: Ángel González
Subject: Re: [Bug-wget] Can someone please help with wget log-in ? apparently I'm missing some Javascript?
Date: Wed, 06 Jun 2012 23:24:13 +0200
User-agent: Thunderbird

On 06/06/12 20:30, Micah Cowan wrote:
> Chances are good that authenticity_token, at least, would need to be
> parsed out from the original login page when you get it, and fed back
> to it in the post-data. How you manage that will be up to you (Perl
> could get you something quick-and-dirty). Good luck! -mjc 
Even easier, you could manually login from your browser and then download
to wget (assuming you won't be automatically fetching new files for so long
it timeouts, or that it's ok to do a relogin).

You just login with your browser, then look at the cookies, in this case:


      1 cookie

Name    _redmine_session
Value
BAh7CToQX2NzcmZfdG9rZW4iMXU3eTdvMkRmWVhSSklWSGRVK1Z4SjVZaGtoM0JvZ0FLUTYzeU4xeTlYU3c9Og9zZXNzaW9uX2lkIiU4NDI4YmE5N2RhNzA4NGRjOGE4ZmNiZmQwOGI0NmMyZToMdXNlcl9pZGkCWAEiHXByb2plY3RzX2xpc3RfZmlsZXNfc29ydCINZmlsZW5hbWU%3D--076854962f8be7537bc780b739577964d6ae28aa



So I simply run:
wget --header 'Cookie:
_redmine_session=BAh7CToQX2NzcmZfdG9rZW4iMXU3eTdvMkRmWVhSSklWSGRVK1Z4SjVZaGtoM0JvZ0FLUTYzeU4xeTlYU3c9Og9zZXNzaW9uX2lkIiU4NDI4YmE5N2RhNzA4NGRjOGE4ZmNiZmQwOGI0NmMyZToMdXNlcl9pZGkCWAEiHXByb2plY3RzX2xpc3RfZmlsZXNfc29ydCINZmlsZW5hbWU%3D--076854962f8be7537bc780b739577964d6ae28aa'
http://ginga.lavid.ufpb.br/attachments/download/476/openginga-source-v0.4.3.tar.gz

(or any other file)
And it downloads fine.



reply via email to

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