Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 845 Bytes

curl.md

File metadata and controls

53 lines (37 loc) · 845 Bytes

cURL

Debuging

curl -svo /dev/null http://www.example.com/

Ignore Proxy

curl --noproxy '*' https://example.com

Fake DNS

Provide a custom address for a specific host and port pair:

curl --resolve example.com:443:127.0.0.1 https://example.com
curl --connect-to 127.0.0.1 https://example.com

Test TLS

curl --tlsv1.0 https://google.com
curl --tlsv1.1 https://google.com
curl --tlsv1.2 https://google.com
curl --tlsv1.3 https://google.com

Headers

Provide host header:

curl --header "Host: example.com" http://localhost/
curl -H "Host: _" http://localhost/

User-Agent

curl --user-agent "Monit/5.27.1" http://127.0.0.1:8022/
curl -H "Monit/5.27.1" http://127.0.0.1:8022/

Basic Auth

curl -u admin:admin https://example.com/