bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] using wget to login to website that uses javascript


From: Norman Khine
Subject: [Bug-wget] using wget to login to website that uses javascript
Date: Sat, 26 Dec 2009 10:29:19 +0100

Hello,
I am trying to simulate access to a website in order to download all
the orders made into our system, but I am having problems with
authentication.

The website is http://commerce.sage.com/Solidarmonde/

Using LiveHeaders I can see that the output can be seen at:
http://paste.lisp.org/+1ZHS

There is the line:

LoginId=myusername&Password=mypassword&__sgx_contextKey=633973881084040213675900406_solidarmonde_X_12873096&__sgx_contextSecurity=&__sgx_script=&=&=

I tried this:

$ wget  --cookies=on --keep-session-cookies --save-cookies=cookie.txt
-S http://commerce.sage.com/Solidarmonde/

$ wget --referer=http://commerce.sage.com/Solidarmonde/ --cookies=on
--load-cookies=cookie.txt --keep-session-cookies
--save-cookies=cookie.txt -S --user-agent="Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3"-S --post-data
'LoginId=myusername&Password=mypassword'
http://commerce.sage.com/Solidarmonde/

but this did not work!

any advise will be much appreciated.

thanks
norman
-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )




reply via email to

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