HTTP/HTML Question: How to simulate <..METHOD="POST"..> 
Author Message
 HTTP/HTML Question: How to simulate <..METHOD="POST"..>

Hi there,

Can someone tell me the secrets behind "simulating a POST action" in the web?

i want my program to fill out a web form [those created by the <FORM> HTML
tag] and send it back to the server. the program will work without much of a
user interaction. The following is the scenario !

At startup, program requests a html page [which contains the <FORM> tag].
after parsing the file & figuring out the form elements, it sets the required
values. Now it has to "POST" the results. [i could do it if the method is
simply "GET" and not "POST"]

Could some Gurus shed some light on this ?

Thanks in anticipation,

siva.



Mon, 20 Dec 1999 03:00:00 GMT  
 HTTP/HTML Question: How to simulate <..METHOD="POST"..>


: i want my program to fill out a web form [those created by the <FORM> HTML
: tag] and send it back to the server. the program will work without much of a
: user interaction. The following is the scenario !

: At startup, program requests a html page [which contains the <FORM> tag].
: after parsing the file & figuring out the form elements, it sets the required
: values. Now it has to "POST" the results. [i could do it if the method is
: simply "GET" and not "POST"]
The POST for form based data is very similar to the GET action for the same
page - you only have to move the stuff you add in the URL for GET into a
separate file, and send this. The actual data send via the HTTP would look
like this:

POST /the_url_to_post_to HTTP/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: xx   { the size in bytes of the actual data below }
                     { any empty line }
edit1=Test

Of course my own HTTP component does all the header stuff, you only need to
provide the actual data to be send.

Hope this helps,
    Andy

--
----------------------------------------------------------------------------
Andreas H"orstemeier                       | "Wenn ist das Nunstueck git


www:   http://www.westend.de/~hoerstemeier | gersput."
fido:  2:2452/108                          |                  (Monty Python)
----------------------------------------------------------------------------  



Fri, 24 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. HTTP/HTML Question: How to simulate <..METHOD="POST"..>

2. <><><><><><><Does anyone know..........><><><><><><><><><><><><><><><><><><><><><><><><

3. Keyboard "simulating"

4. Keyboard "simulating"

5. The keys "-"/"+"/"*"

6. <><><> www.FotoCD.net <><><>

7. Need help with "addParam" method

8. Re : Treport.connect method "ServerType" parameter

9. >>>>> CHEAP and EASY database DESIGNtool <<<<<<

10. :>>>Use mouse in Pascal<<<:

11. ""256 Color Mouse""

12. D1->D2: "Engine not initialized"

 

 
Powered by phpBB® Forum Software