HTTP protocol #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Here is a good documentation.
HTTP protokollto HTTP protocolHypertext Transfer Protocol (HTTP) is an application-layer protocol for transmitting hypermedia documents, such as HTML. It was designed for communication between web browsers and web servers, but it can also be used for other purposes, such as machine-to-machine communication, programmatic access to APIs, and more.
HTTP headers
HTTP headers let the client and server pass additional information with an HTTP request or response.
Message headers are used to send metadata about a resource or a HTTP message, and to describe the behavior of the client or the server.
Headers can be grouped according to their contexts:
A request header is an HTTP header that can be used in an HTTP request to provide information about the request context, so that the server can tailor the response.
A response header is an HTTP header that can be used in an HTTP response and that doesn't relate to the content of the message. Response headers, like
Age,LocationorServerare used to give a more detailed context of the response.A representation header (or 'representation metadata') is an HTTP header that describes how to interpret the data contained in the message.
A payload header is an HTTP header that describes the payload information related to safe transport and reconstruction of the original resource representation, from one or more messages. This includes information like the length of the message payload, which part of the resource is carried in this payload (for a multi-part message), any encoding applied for transport, message integrity checks, etc.
Payload headers may be present in both HTTP request and response messages (i.e. in any message that is carrying payload data).
Headers can also be grouped according to how proxies handle them:
End-to-end headers
These headers must be transmitted to the final recipient of the message: the server for a request, or the client for a response. Intermediate proxies must retransmit these headers unmodified and caches must store them.
Hop-by-hop headers
These headers are meaningful only for a single transport-level connection, and must not be retransmitted by proxies or cached. Note that only hop-by-hop headers may be set using the
Connectionheader.HTTP request methods
POST GET PUT DELETE
C R U D
create read update delete
HTTP response status codes
Most important HTTP response status codes:
101 - Switching Protocols
200 - OK
201 - Created
204 - No Content
304 - Not Modified
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
409 - Conflict
410 - Gone
429 - Too Many Requests
500 - Internal Server Error
503 - Service Unavailable (server unavailable)