post data -- how to copy what web-browser submits
i want to script toggling fields from a quickbase website so i dont have to login and manually type the same thing for multiple users.
is there a way to find out what post data is being transferred and what the variables would be (not seeing that option in elinks). i am having trouble formatting my wget. |
You can look at the XHTML form itself and pick out the various fields and their values. Then use those to pass those with wget to your targeted web server. See the --post-data or --post-data-file options, and maybe along with the --method option.
Code:
wget --help | less See the standard for details about the form element and the data fields that in can include, if you want background. However, if the web page has all that hidden behind Javascript, then not only are the desingers low-life scum but you have more work. In that case you would have to do a man-in-the-middle attack against your own browser to sniff to outgoing connection. It's easy, but has a lot of set up to get in place. |
yes, i think i am being obscured by js. thru trial-and-error, this is where i'm stuck:
Code:
/usr/bin/wget --save-cookies cookies-0.txt --keep-session-cookies --post-data "loginid=$user&password=$pass" 'https://quickbase.02144.com/db/main?a=SignIn&nexturl=https%3A%2F%2Fquickbase.02144.com%2Fdb%2Fba72vkeua&rc=psi' -O s-0.html Code:
[schneidz@xwascldm3d close]$ less s-2.html |
You can also use a local web proxy, like Fiddler or Charles Proxy.
|
Quote:
|
All times are GMT -5. The time now is 08:06 PM. |