View Full Version : Post form data command in the http properties
citect
07-06-2009, 02:09 AM
Hi
I want to past a form data using the form data command in the http properties. What is the format of the data?
can we get an example of how to use this command?
thanks
kinook
07-06-2009, 01:47 PM
var_x=value_a&var_y=value_b...
citect
07-06-2009, 06:06 PM
I tried to put the following data to my loggin form but it does not seems to work(because the next form post requires that the user to be logged in):
username=usrname&passwd=password
I know the form requires these two fields username and passwd. See the data form in the attach file.
Please can you advice?
kinook
07-06-2009, 06:39 PM
To maintain state between requests, web applications typically return a cookie to the client, and the client includes the cookie with subsequent requests.
http://en.wikipedia.org/wiki/HTTP_cookie
When logging in manually with a browser, the browser will manage these session cookies. The VBP HTTP action is meant only for submitting data for a single form and doesn't support sessions or getting and setting cookie values.
You could instead call a browser such as IE (using a Run Script action) to login to a web site and perform actions within the login session.
http://scriptorium.serve-it.nl/view.php?sid=30
http://www.google.com/search?q=automate+login+to+website+vbscript
Another option might be calling a command-line HTTP client (using a Run Program action) that supports sessions/cookies.
http://gnuwin32.sourceforge.net/packages/wget.htm
http://www.gnu.org/software/wget/
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.