Command line curl can display response header by using -D
option, but I want to see what request header it is sending. How can I do that?
How to display request headers with command line curl
curl
Related Topic
- Using cURL with a username and password
- Xml – POST XML file using cURL command line
- Json – How to POST JSON data with cURL
- Linux – performing HTTP requests with cURL (using PROXY)
- Windows – How to install and use cURL on Windows
- Getting only response header from HTTP POST using cURL
- How to capture cURL output to a file
- How to measure request and response times at once using cURL
Best Answer
curl's
-v
or--verbose
option shows the HTTP request headers, among other things. Here is some sample output: