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'上? –