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?
-D
The verbose option is handy, but if you want to see everything that curl does (including the HTTP body that is transmitted, and not just the headers), I suggest using one of the below options:
--trace-ascii -
--trace-ascii output_file.txt