curl 命令

引用

http://www.ruanyifeng.com/blog/2011/09/curl.html

curlwithbaseauth

curl  -H "AUTHORIZATION: Basic <Base64.encode64(user:passwd)>" http://f22.agideo.com

curlwillformpost

curl -F"token=1234" -F "item_number=322029" -F "_method=put" -F "photo=@/tmp/4444444.JPG" http://localhost:3000/products/upload_photo_by_token

curlwillcustomertimeout

curl --connect-timeout 5 --max-time 5 http://forums.macosxhints.com

curlwillheaderaccept

curl  -H "Accept:application/json" localhost:3000/bills/1

相关推荐