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

前端 未结 6 1061
我寻月下人不归
我寻月下人不归 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:49

    It seems that you are using POST incorrectly. Although you are using POST you are sending JSON as a request parameter that is the GET style. When using POST you should send content as a request body. In this case no reasonable size limitation exist.

提交回复
热议问题