User Tools

Site Tools


curl:debugging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
curl:debugging [2021/01/29 09:23] – created petercurl:debugging [2021/01/29 09:51] (current) – [Set User-Agent] peter
Line 18: Line 18:
 </WRAP> </WRAP>
  
 +----
 +
 +====== Set User-Agent ======
 +
 +To make it easier to find in the logs.
 +
 +<code bash>
 +curl -v --user-agent "CURL DEBUG (`date`)" -H "X-foo: mytest" --show-error sharewiz.net
 +</code>
 +
 +<WRAP info>
 +**NOTE:**
 +
 +  * **–user-agent**:  Set a custom user-agent.
 +  * **-H**:  Set a custom request header.
 +</WRAP>
  
curl/debugging.1611912206.txt.gz · Last modified: 2021/01/29 09:23 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki