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

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

    I fixed this by passing an additional header

    connection: close, along with the request.

    Could you please try and let me know if this works for you.

提交回复
热议问题