Why do I get “Error parsing HTTP request header” when POSTing a JSON string?

前端 未结 6 1075
我寻月下人不归
我寻月下人不归 2021-02-09 13:29

I am trying to send a POST request from browser to my server(local host). My request URL is :

 http://localhost:8080/myPath/myServlet?requestData={          


        
6条回答
  •  时光取名叫无心
    2021-02-09 13:51

    I had a similar issue, I was sending a POST request (using RESTClient plugin for Firefox) with data in the request body and was receiving the same message.

    In my case this happened because I was trying to use HTTPS protocol in a local tomcat instance where HTTPS was not configured.

提交回复
热议问题