[quote]
[url]http://www.ruanyifeng.com/blog/2011/09/curl.html[/url]
[/quote]
curl with base auth
curl will form post
curl will customer timeout
curl will header accept
[url]http://www.ruanyifeng.com/blog/2011/09/curl.html[/url]
[/quote]
curl with base auth
curl -H "AUTHORIZATION: Basic <Base64.encode64(user:passwd)>" http://f22.agideo.com
curl will form post
curl -F"token=1234" -F "item_number=322029" -F "_method=put" -F "photo=@/tmp/4444444.JPG" http://localhost:3000/products/upload_photo_by_token
curl will customer timeout
curl --connect-timeout 5 --max-time 5 http://forums.macosxhints.com
curl will header accept
curl -H "Accept:application/json" localhost:3000/bills/1