Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 280 Bytes

curl.md

File metadata and controls

11 lines (6 loc) · 280 Bytes

Curl

Recipes

Set hostname header ("Fake hostname")

curl -i -H "Host:example.com" http://localhost:8080/examplesiteurl

Send HTTP POST with JSON body

curl -i -H "Content-Type: application/json" -d '{"name":"John","age":32}' http://localhost:3000/api/users