Notes
-I
(capital i) shows only the HTTP headers of the reply from the server-i
shows both the headers and the body of the reply-v, --verbose
shows more information, including info about the request that you sent-H, --header "Header-Name: Header Value"
lets you make a custom header. If you pass in a header name and leave the value blank, that will force curl to not send that header even if it wanted to. This is useful to force curl to NOT send an "Expect: 100-Continue" header, which can mess up some old servers.-X, --request HTTP_VERB
(capital X) sends a request with HTTP_VERB instead of GET or POST. This can be any HTTP verb, including DELETE, PUT, HEAD, or anything else.-A, --user-agent AGENT_STRING
sets your agent to AGENT_STRING. This lets you say, "I'm Firefox, I'm not curl" or "I'm Google's Web Search bot, I'm not curl" if a website is being annoying and serves different content or no content depending on the user agent.