1
我想这REST WS http://phprestsql.sourceforge.net/为什么REST PUT返回HTTP/1.x的405不允许的方法
当我选择PUT动词,复制和粘贴文本中
firstname=Jim
surname=Example
[email protected]
company_uid=1
我得到这个错误响应:
HTTP/1.x 405 Method Not Allowed
Date: Sun, 18 Aug 2013 16:50:06 GMT
Via: 1.1 varnish
Allow: GET, HEAD
Server: Apache/2.2.15 (CentOS)
Age: 0
Vary: Host, Accept-Encoding
Content-Type: text/html
Cache-Control: max-age=172800
X-Varnish: 244445725
Connection: keep-alive
Content-Length: 0
Expires: Tue, 20 Aug 2013 16:50:06 GMT
为什么我没有拿到预期
HTTP/1.x 201 Created
'Allow:GET,HEAD' can not you add other methods? – 2013-08-18 17:00:22
这不是我的网站,它是有人制作的教程。 – user310291
您在哪个URI上发送了“PUT”?是否按照教程中所述在'/ tutorial/user/4'上? –