How to receive POST data in python when using XMLHttpRequest()
问题 I have two questions regarding receiving of data when using XMLHttpRequest(). Client side is in javascript. Server side is in python. How do I receive/process data on the python side ? How do I respond back to HTTP request? Client side var http = new XMLHttpRequest(); var url = "receive_data.cgi"; var params = JSON.stringify(inventory_json); http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form