layout | title | permalink |
---|---|---|
page |
Curl |
/curl/ |
curl -v http://karlespiritu.com
curl -kv "https://karlespiritu.com/?foo=bar&memento=mori"
curl -k -H "Content-Type: application/json" -X POST -d '{"name":"hello","value":"world"}' https://httpbin.org/post
curl -X "PUT"
for a PUT request
##Request with Basic Auth
curl -vvv -u karlo@httpbin.org:mypass http://httpbin.org/basic-auth
curl -LOk https://raw.github.com/username/reponame/master/filename