name: value
pairs that ends with a blank line that separates the headers from the following request body (that sometimes is empty).Host:
, Accept:
, User-Agent:
and a few others that may depend on what the user asks curl to do.-H
or --header
the new header to use and it will then replace the internal one if the header field matches one of those headers, or it will add the specified header to the list of headers to send in the request.Host:
header, do this:Elevator: floor-9
header, do this:User-Agent:
header, do this: