[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: hoe to use POST method
From: |
Stephen F. Booth |
Subject: |
RE: hoe to use POST method |
Date: |
Wed, 25 Oct 2000 08:55:01 -0500 |
> I am facing a problem of how to send data to a servlet
> which is in a webserver through POST method of HTTP.
>
> The servlet is situated in a webserver which I can
> access through the program and getting the Data out of
> it using GET / method. And the servlet support both
> GET and POST methods.
Look at RFC 2616 for reference on the POST method. Basically, send
something like
POST http://servlet.address HTTP/1.1<CR><LF>
<CR><LF>
[POST data]
to the HTTP server on whatever port it's running on. The POST data is
standard form encoded data, name=value pairs like a GET method. You can
tailor the HTTP request headers for your specific case.
-Stephen