HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that the user can easily access, for example by a mouse click or by tapping the screen in a web browser. These can be divided into several groups:The last part of a response is the body. HTTP messages are how data is exchanged between a server and a client.

Several streams can be combined together, a process called HTTP frames are now transparent to Web developers. The OPTIONS method is used by the client to find out the HTTP methods and other options supported by a web server. The following example requests the server to save the given entity-body in The DELETE method is used to request the server to delete a file at a location specified by the given URL. GET is used to request data from a specified resource. The following example requests the server to delete the given file The CONNECT method is used by the client to establish a network connection to a web server over HTTP. Glossary Safe Methods. Their There are numerous request headers available. The client can specify a URL for the OPTIONS method, or an asterisk (*) to refer to the entire server. These method names are case sensitive and they must be used in uppercase.The GET method is used to retrieve information from the given server using a given URI. This is an additional step in HTTP/2, between HTTP/1.1 messages and the underlying transport protocol. This is the main method used for document retrieval. The following example shows the usage of TRACE method:The server will send the following message in response to the above request: The following example makes use of POST method to send a form data to the server, which will be processed by a process.cgi and finally a response will be returned:The server side script process.cgi processes the passed data and sends the following response:The PUT method is used to request the server to store the included entity-body at a location specified by the given URL. Sign in to enjoy the benefits of an MDN account. The following example makes use of HEAD method to fetch header information about hello.htm:The server response against the above GET request will be as follows:You can notice that here server the does not send any data after header.The POST method is used when you want to send some data to the server, for example, file update, form data, etc. The client can specify a URL for the OPTIONS method, or an asterisk (*) to refer to the entire server. If you haven’t already created an account, you will be prompted to do so after signing in.
Note that the query string (name/value pairs) is sent in the URL of a GET request: The HTTP/2 framing mechanism adds a new intermediate layer between the HTTP/1.x syntax and the underlying transport protocol, without fundamentally modifying it: building upon proven mechanisms.Get the latest and greatest from MDN delivered straight to your inbox.The newsletter is offered in English only at the moment. Their start-line contain three elements: 1. In HTTP/2, the once human-readable message is now divided up into HTTP frames, providing optimization and performance improvements.Web developers, or webmasters, rarely craft these textual HTTP messages themselves: software, a Web browser, proxy, or Web server, perform this action. No changes are needed in the APIs used by Web developers to utilize HTTP frames; when available in both the browser and the server, HTTP/2 is switched on and used.HTTP messages are the key in using HTTP; their structure is simple, and they are highly extensible. Both methods are said to be considered “safe“. The following example makes use of GET method to fetch hello.htm:The server response against the above GET request will be as follows:The HEAD method is functionally similar to GET, except that the server replies with a response line and headers, but no entity-body. The difference between PUT and POST is that PUT is idempotent: calling it once or several times successively has the same effect (that is no side effect), where successive identical POST may have additional effects, like passing an order several times. Not all responses have one: responses with a status code that sufficiently answers the request without the need for corresponding payload (like Bodies can be broadly divided into three categories:HTTP/1.x messages have a few drawbacks for performance:HTTP/2 introduces an extra step: it divides HTTP/1.x messages into frames which are embedded in a stream. Requests using GET should only retrieve data and should have no other effect on the data.Same as GET, but transfers the status line and header section only.A POST request is used to send data to the server, for example, customer information, file upload, etc.