Client Request with Content-Type Header [Curl/Bash Code]

An example of an HTTP request to send a JSON string to the server. The 'Content-Type: application/json' header tells the server that the request body contains a JSON string. The Curl/Bash code was automatically generated for the Client Request Content Type Header example.
Client Request with Content-Type Header [Curl/Bash Code] Send
POST /echo/post/json HTTP/1.1
Host: reqbin.com
Accept: application/json
Content-Type: application/json
Content-Length: 16

{"key": "value"}
Updated: Viewed: 9534 times
Curl/Bash code for Client Request Content Type Header example

Curl/Bash code for Client Request Content Type Header Example

This Curl/Bash code snippet was generated automatically for the Client Request Content Type Header example.
<< Back to the Client Request Content Type Header example

Generate code snippets for Curl/Bash and other programming languages

Convert your Client Request Content Type Header request to the PHP, JavaScript/AJAX, Curl/Bash, Python, Java, C#/.NET code snippets using the Curl/Bash code generator.