Cheatsheet: Difference between revisions
Content added Content deleted
(→Misc) |
(→Misc) |
||
Line 1,134: | Line 1,134: | ||
curl ftp://example.com |
curl ftp://example.com |
||
curl example.com:21 |
curl example.com:21 |
||
curl example.com:7822 Troubleshooting SSH: SSH-2.0-OpenSSH_5.3 |
curl example.com:7822 Troubleshooting SSH: SSH-2.0-OpenSSH_5.3 |
||
time curl google.com |
time curl google.com |
||
curl -i https://site1.lab.com --cert /root/ca/domains/ubnsrv01-cert.pem --key /root/ca/domains/ubnsrv01-key.pem |
curl -i https://site1.lab.com --cert /root/ca/domains/ubnsrv01-cert.pem --key /root/ca/domains/ubnsrv01-key.pem |
||
Line 1,142: | Line 1,142: | ||
curl --tlsv1 https://yoururl.com |
curl --tlsv1 https://yoururl.com |
||
curl -H 'X-My-Custom-Header: 123' https://httpbin.org/get Using httpbin tool; shows header info |
curl -H 'X-My-Custom-Header: 123' https://httpbin.org/get Using httpbin tool; shows header info |
||
curl -e google.com yoururl.com Referrer |
curl -e google.com yoururl.com Referrer |
||
curl --data "name=bool&last=word" https://httpbin.org/post Post data |
curl --data "name=bool&last=word" https://httpbin.org/post Post data |
||
curl -X POST https://httpbin.org/post Empty Post Request |
|||
curl -H 'Host: aman.info.tm' 128.199.139.216 If Server using Virtual Hosting |
|||
Post Json Data |
|||
curl --data '{"email":"test@example.com", "name": ["Boolean", "World"]}' -H 'Content-Type: application/json' https://httpbin.org/post |
|||
Time Breakdown |
|||
curl https://www.booleanworld.com/ -sSo /dev/null -w 'namelookup:\t%{time_namelookup}\nconnect:\t%{time_connect}\nappconnect:\t%{time_appconnect}\npretransfer:\t%{time_pretransfer}\nredirect:\t%{time_redirect}\nstarttransfer:\t%{time_starttransfer}\ntotal:\t\t%{time_total}\n' |
|||
*mtr |
*mtr |