- Features:
- The HTTP client requests a request message in the following formats: Request line, header, blank line, and request data.
- The server response response is also composed of four parts, namely: response line, response header, blank line, response body.
- Request method:
GET
: Gets a resource that is used to request access to a resource that has been identified by a URI (uniform resource Identifier, and the relationship between URL and inclusion).POST
: Is used to transfer the body of the entity, although GET can be implemented, but generally not.PUT
: Transfers files. However, because the PUT method does not have an authentication mechanism, anyone can upload files and there are security issues, so most websites do not use this method.HEAD
: Obtains the packet header. This is the same as a GET request, except that the body part of the message is not returned.DELETE
: Deletes a file. There are also security problems without authentication mechanism.OPTIONS
: asks which methods the specified request URI supports.TRACE
: a way to trace the path that allows the Web server to loop back previous request traffic to the client.CONNECT
: A tunnel must be established when communicating with the proxy server to implement TCP communication over the tunnel protocol.