curl.post.nobody

curl -v -X POST http://api.1001s.cn/v1/magazine/123/like

curl.post.form (application/x-www-form-urlencoded)

curl -v -X POST --data "username=foo&password=bar" https://api.1001s.cn/v1/auth/signup

curl.post.form (multipart/form-data)

具体格式见 [http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2]

curl -v -F 'name=1.jpg' -F 'file=@1.jpg' http://chanyouji2.com/upload

curl.put.json

curl -v -X PUT --data-binary @filename.json --header "Content-Type:application/json" http://api.1001s.cn/v1/user/me

curl.put.file

curl -v -X PUT --data-binary @filename.jpg --header "Content-Type:image/jpeg" http://api.1001s.cn/v1/user/me/avatar

curl.delete

curl -v -X DELETE http://api.1001s.cn/v1/comment/123

多次请求

curl -v http://api.1001s.cn/?[1-10]  #请求10次
curl -v http://api.1001s.cn/foo?user=admin&[1-99] #请求99次