码迷,mamicode.com
首页 > 其他好文 > 详细

转载:Http 的method

时间:2014-07-02 23:42:07      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:http   os   art   for   io   res   

关于Http 的method:

 

GET Asks to get the thing (resource / file) at the requested URL.


POST Asks the server to accept the body info attached to the request, and give it to the thing at the requested URL It’s like a fat GET... a GET with extra info sent with the request.


HEAD Asks for only the header part of whatever a GET would return. So it’s just like GET, but with no body in the response. Gives you info about the requested URL without actually getting back the real thing.


TRACE Asks for a loopback of the request message, so that the client can see what’s being received on the other end, for testing or troubleshooting.


PUT Says to put the enclosed info (the body) at the requested URL.


DELETE Says to delete the thing (resource / file) at the requested URL.


OPTIONS Asks for a list of the HTTP methods to which the thing at the requested URL can respond.


CONNECT Says to connect for the purposes of tunneling.

转载:Http 的method,布布扣,bubuko.com

转载:Http 的method

标签:http   os   art   for   io   res   

原文地址:http://www.cnblogs.com/hanxiaocai/p/3818740.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!