POST data to CGI file using XMLHttpRequest causes BadHeader
问题 When I try posting data to my CGI file, my CGI file says the actual post data is invalid. I am using HTML/JavaScript for the front end and Python for the backend. Works: <form name="login" action="/cgi-bin/register.py" method="POST"> Username:<input type="text" name="username"><br> Password:<input type="password" name="password"><br> Confirm password:<input type="password" name="confirmpassword"><br> </form> However, this causes the page to refresh. I am trying to avoid this and have text