Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-06-2009, 02:09 AM
citect citect is online now
Registered User
 
Join Date: 11-13-2008
Posts: 30
Post form data command in the http properties

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
Reply With Quote
  #2  
Old 07-06-2009, 01:47 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
var_x=value_a&var_y=value_b...
Reply With Quote
  #3  
Old 07-06-2009, 06:06 PM
citect citect is online now
Registered User
 
Join Date: 11-13-2008
Posts: 30
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?
Attached Files
File Type: txt login data form.txt (16.1 KB, 2054 views)
Reply With Quote
  #4  
Old 07-06-2009, 06:39 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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=autom...bsite+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/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:52 PM.


Copyright © 1999-2023 Kinook Software, Inc.