User Tools

Site Tools


curl:debugging

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.txt · Last modified: 2021/01/29 09:51 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki