Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 613 Bytes

curl.md

File metadata and controls

40 lines (29 loc) · 613 Bytes
layout title permalink
page
Curl
/curl/

Verbose Output (-v)

curl  -v http://karlespiritu.com

Get Request

curl -kv "https://karlespiritu.com/?foo=bar&memento=mori"

POST or PUT Request

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

Download Files

curl -LOk  https://raw.github.com/username/reponame/master/filename