HTTP Request and Response Example

An example of making an HTTP request to the server and the corresponding HTTP response from the server. In this HTTP Request and Response example, the the Accept: text/html request header tells the server that the client needs HTML. The Content-Type: text/html response header informs the client that the server has returned HTML.
HTTP Request and Response Example Send
GET /echo HTTP/1.1
Accept: text/html

Updated: Viewed: 11368 times

Generate Code Snippets for HTTP Request And Response Example

Convert your HTTP Request And Response request to the PHP, JavaScript/AJAX, Curl/Bash, Python, Java, C#/.NET code snippets using the ReqBin code generator.