Answers for "curl headers"

6

curl headers

# -i to include response headers in the output.
# -H to specify a header
# -X to specify the request method
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Posted by: Guest on March-29-2021
0

curl host header

curl --header "Host: example.com" http://127.0.0.1/
Posted by: Guest on October-26-2020
2

curl pass a header

curl -H "Accept-Charset: utf-8" -H "Content-Type: application/x-www-form-urlencoded" http://www.some-domain.com
Posted by: Guest on March-03-2020
2

curl check response headers

Just use '-ISs' flag options I:(only headers), sS:(silence and no errors) 
curl www.example -ISs
Posted by: Guest on November-13-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language