curl:debugging
This is an old revision of the document!
Table of Contents
Curl - Debugging
Curl contains numerous advanced debugging options, which can be used to test HTTP features, display verbose output, and to retrieve protocol headers.
Verbose output
curl -k -v https://sharewiz.net
NOTE:
- -v: Verbose output.
Set User-Agent
To make it easier to find in the logs.
curl -v --user-agent "CURL DEBUG (date)" -H "X-foo: mytest" --show-error sharewiz.net
NOTE:
- –user-agent: Set a custom user-agent.
- -H: Set a custom request header.
curl/debugging.1611912612.txt.gz · Last modified: 2021/01/29 09:30 by peter