bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] WGET Script to log into vBulletin


From: Micah Cowan
Subject: Re: [Bug-wget] WGET Script to log into vBulletin
Date: Tue, 02 Dec 2008 08:42:44 -0800
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Cody Woolaver wrote:
> When i did all of that (removing the --sipder option) it downloaded the
> index.php file. I renamed it to index.html and viewed it in a web
> browser and it still showed the login box (meaning i hadn't logged in)

(From your earlier message:)

>> wget --spider --save-cookies=/home/cody/Desktop/cookies.txt
>> --keep-session-cookies
>> --post-data='vb_login_username=user&vb_login_password=pass'
>> http://www.forurm.com/login.php?do=login

I'm catching up on my mail offline, so I don't have access to the site
in question (you're certain it's spelled forurm.com?); however, at the
very least you're not sending everything in the form (there would
normally be a submit button in addition to the user/pass fields). When
encountering issues, you should strive to make Wget send everything that
Firefox would send. This means submit button values, and any hidden fields.

Use LiveHttpHeaders (or whatever it's called) or tcpdump or some such to
see what Firefox actually sends from a no-cookies state (pre-existing
cookies being required may also sometimes be the source of trouble), and
keep tweaking Wget's options until they match as closely as possible.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk1ZYQACgkQ7M8hyUobTrFz3wCdGjpqi/zQ90C6pybu3wl2ThYV
0noAnAjgzgT17m9GpIxxvu5sDKe2TQuI
=xgcy
-----END PGP SIGNATURE-----





reply via email to

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