Simulate submitting data from a web browser: Difference between revisions

m
add syntax highlighting
(Created page with '=== httpPostRequest === '' by Nick Wright '' I just spent a while trying to figure the chttpRequest class out and the help has no real world examples so i am posting so as to sa...')
 
m (add syntax highlighting)
Line 5: Line 5:
Lets say you need to post to a location e.g. http://www.test.com/testlogin.php
Lets say you need to post to a location e.g. http://www.test.com/testlogin.php
and you are trying to simulate filling in forms and posting as in the following html:
and you are trying to simulate filling in forms and posting as in the following html:
<source lang="html">
  <form action=/testlogin.php method=post>
  <form action=/testlogin.php method=post>
   Name:  <input type=text name=uid /><br />
   Name:  <input type=text name=uid /><br />
Line 10: Line 11:
   <input type=submit name=submit>
   <input type=submit name=submit>
  </form>
  </form>
</source>
then this example view works:
then this example view works:
<source lang="dataflex">
  Use cHttpTransfer.pkg
  Use cHttpTransfer.pkg
  Use cTextEdit.pkg
  Use cTextEdit.pkg
Line 80: Line 83:
      
      
  Cd_End_Object
  Cd_End_Object
 
</source>


Note the help documentation in older VDF versions appears to be wrong:
Note the help documentation in older VDF versions appears to be wrong: