In this short, article we will present how to display HTTP request headers with the curl command line tool.
2. Display request headers with curl
To display request headers we could use the following command:
-s- stands for silent mode,
-D- dump headers to a file but
-send it to standard output (console),
-o /dev/null- redirect output to
/dev/null- to ignore response body (we only want headers).
Note that on Windows you need to use
-o NULL instead of
In this short article we presented how to display request headers with curl, if you searching want to show also response headers check the following link: