Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Transfer Protocol
(HTTP)
HTTP
HTTPTransaction
Messagecategories:
Request Messages:
A request message consists of a request line, headers, and
sometimes a body.
Request Line
The request line defines the request type, resource (URL),
Requestmessage
Requestline
The request type field in a request message defines several kinds of messages
referred to as methods.
GET The GET method is used when the client wants to retrieve a document
from the server.
HEAD The HEAD method is used when the client wants some information
about a document .
POST The POST method is used by the client to provide some information to
the server.
PUT The PUT method is used by the client to provide a new or replacement
document to be stored on the server.
PATCH PATCH is similar to PUT
COPY The COPY method copies a file to another location.
MOVE The MOVE method moves a file to another location.
DELETE The DELETE method removes a document on the server.
LINK The LINK method creates a link or links from a document to another
location. UNLINK The UNLINK method deletes links created by the LINK
method.
Responsemessage
Statusline: Statuscode:SameformatasFTPresponses(threedigits)
Headerformat:
Headers
The headers exchange additional information between the client and the
server.
The header can be one or more header lines.
Each header line is made of a header name, a colon, a space, and a header
value
A header line belongs to one of four categories:
General header,
Request header,
Response header, and
Entity header.
General Header
The general header gives general information about the message
and can be present in both a request and a response.
Request Header
The request header can be present only in a request message. It
specifies the clients configuration and the clients preferred
document format.
Response Header
The response header can be present only in a response message. It
specifies the servers configuration and special information about
the request.
Entity Header
The entity header gives information about the body of the document.
Although it is mostly present in response messages, some request
messages, such as POST and PUT methods, that contain a body
also use this type of header.
Headers