You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST http://localhost:8000
{
"name": "Bob",
"age": 30
}
HTTP 200
$ hurl test.hurl | grep curl
* Request can be run with the following curl command:
* curl --header 'Content-Type: application/json' --data $'{\n "name": "Bob",\n "age": 30\n}''http://localhost:8000'
$ hurl test.hurl | grep curl
* Request can be run with the following curl command:
* curl --header 'Content-Type: application/vnd.api+json' --data $'{\n "name": "Bob",\n "age": 30\n}''http://localhost:8000'
Explicit "content-type" (pay attention to the case) header on implicit => KO
$ hurl test.hurl | grep curl
* Request can be run with the following curl command:
* curl --header 'content-type: application/vnd.api+json' --header 'Content-Type: application/json' --data $'{\n "name": "Bob",\n "age": 30\n}''http://localhost:8000'
In the last case, there are two "Content-Type" headers: 'content-type: application/vnd.api+json' and 'Content-Type: application/json'
The text was updated successfully, but these errors were encountered:
Hurl 4.2.0:
In the last case, there are two "Content-Type" headers: 'content-type: application/vnd.api+json' and 'Content-Type: application/json'
The text was updated successfully, but these errors were encountered: