在向JAX-RS REST服务器发送一些测试请求时,我得到了一个
400 - Bad Request
The request sent by the client was syntactically incorrect.
该请求是
PUT http://localhost:8080/some/url
Content-Type: text-plain
foo
Content-Type: text-plain
是一个错字和错误的MIME类型。它应该是
Content-type: text/plain
这一段时间有点让人头疼。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句