Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #curl #headers
ADD COMMENT
Topic
Name
5+5 =