Post request gets cut off

前端 未结 1 1008
面向向阳花
面向向阳花 2021-01-28 19:16

I have a problem with my post request in javascript.

I have the following code for sending the post request

    var xhttp = new XMLHttpRequest();
               


        
相关标签:
1条回答
  • 2021-01-28 19:53

    You need to convert the username parameter into a URI safe string, using xhttp.send("username="+encodeURIComponent(username));

    0 讨论(0)
提交回复
热议问题