CURL CLI
Most common curl Calls
Trace Information and Time
- curl --trace-ascii d.txt --trace-time http://example.com/
Manually resolving the DNS
- curl --resolve www.example.org:80:127.0.0.1 http://www.example.org/
With Port Number
With Proxy
- curl --proxy http://proxy.example.org:4321 http://remote.example.org/
With Username and password
- curl http://user:password@example.org/ or
- curl -u user:password http://example.org/
Post call
- curl --data "birthyear=1905&press=%20OK%20" http://www.example.com/when.cgi
curl --data-urlencode "name=I am Daniel" http://www.example.com
References: curl.haxx.se
Comments
Post a Comment