http://www.ietf.org/html.charters/http-charter.htmlThis chapter provides a short introduction to a few HTTP basics. For more information on HTTP, see the IETF home page at
http://www.ietf.org/home.html
.
GET
--Requests the specified documentHEAD
--Requests only the header information for the documentPOST
--Requests that the server accept some data from the client, such as form input for a CGI programPUT
--Replaces the contents of a server's document with data from the client
Request data
If the client has made a POST
or PUT
request, it can send data after the request header and a blank line. If the client sends a GET
or HEAD
request, there is no data to send; the client waits for the server's response.
Responses
The server's response includes the following:
Response header
The response header contains information about the server and information about the document that will follow. Common response headers are shown in Table A.3.
Response data
The server sends a blank line after the last header field. The server then sends the document data.