首页 > 其他 > 详细

extension methods

时间:2016-08-16 00:16:45      阅读:205      评论:0      收藏:0      [点我收藏+]

HTTP The Definitive Guide

 
Table 3-1. Common HTTP methods
 
Method
Description
Message body?
 
GET
Get a document from the server.
No
 
HEAD
Get just the headers for a document from the server.
No
 
POST
Send data to the server for processing.
Yes
 
PUT
Store the body of the request on the server.
Yes
 
TRACE
Trace the message through proxy servers to the server.
No
 
OPTIONS
Determine what methods can operate on a server.
No
 
DELETE
Remove a document from the server.
No
 
Not all servers implement all seven of the methods in Table 3-1. Furthermore, because HTTP was designed to be easily extensible, other servers may implement their own request methods in addition to these. These additional methods are called extension methods, because they extend the HTTP specification.
//这些附加方法是对HTTP规范的扩展
 
 1 GET http://localhost/w0813w/diyrest/mobile/list/66/
 2 Accept: text/html
 3 
 4  -- response --
 5 406 Not Acceptable
 6 Date:  Mon, 15 Aug 2016 15:50:26 GMT
 7 Server:  Apache/2.4.18 (Win64) PHP/5.6.19
 8 Alternates:  {"Mobile.php" 1 {type application/x-httpd-php} {length 636}}
 9 Content-Length:  473
10 Keep-Alive:  timeout=5, max=100
11 Connection:  Keep-Alive
12 Content-Type:  text/html; charset=iso-8859-1
13 
14 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
15 <html><head>
16 <title>406 Not Acceptable</title>
17 </head><body>
18 <h1>Not Acceptable</h1>
19 <p>An appropriate representation of the requested resource /w0813w/diyrest/mobile/list/66/ could not be found on this server.</p>
20 Available variants:
21 <ul>
22 <li><a href="Mobile.php">Mobile.php</a> , type application/x-httpd-php</li>
23 </ul>
24 <hr>
25 <address>Apache/2.4.18 (Win64) PHP/5.6.19 Server at localhost Port 80</address>
26 </body></html>

 

 
发问:
0-406

extension methods

原文:http://www.cnblogs.com/yuanjiangw/p/5774803.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!