HTTP Request and Response Example [Curl/Bash Code]

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. The Curl/Bash code was automatically generated for the HTTP Request And Response example.
HTTP Request and Response Example [Curl/Bash Code] Send
GET /echo HTTP/1.1
Host: reqbin.com
Accept: text/html

Updated: Viewed: 7772 times
Curl/Bash code for HTTP Request And Response example

Curl/Bash code for HTTP Request And Response Example

This Curl/Bash code snippet was generated automatically for the HTTP Request And Response example.
<< Back to the HTTP Request And Response example

Generate code snippets for Curl/Bash and other programming languages

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