Java Reference
In-Depth Information
Figure 7.2: Using a HTTP GET based Form
If you examine the browser URL line in Figure 7.2, you will see that the form name-value
pairs have been concatenated to the URL.
Using HTTP POST
HTTP POST is slightly more complex than HTTP GET . It works very similar to HTTP
GET , in that a series of name-value pairs is transmitted; however, you are not limited by
the amount of data you can transmit. A form that makes use of HTTP POST will have a
<form> tag similar to the following:
<form action="somepage.php" method="POST">
When data is transmitted using HTTP POST , the data is sent as part of the request
packet, but it is not visible from the URL. To see how HTTP POST data is sent, consider the
following URL:
http://www.httprecipes.com/1/7/post.php
When you enter a search string and click “Send”, the following packet is sent to the web
server:
Search WWH ::




Custom Search