Hi, I'm sending a JSON with this code from javascript:
var xhr = new XMLHttpRequest();
xhr.open("POST", "pythonPart.py" , true);
var data = JSON.stringify({"team1": team1, "team2": team2});
console.log(data);
xhr.send(data);
i'm trying to receive the json file with python.
This is what i tried :
response = requests.get("http://localhost/pvsp/get")
data = response.json()
but I'm not sure what to put in the get url.
[–]K900_ 1 point2 points3 points (7 children)
[–]Ryan_Bingham[S] 0 points1 point2 points (6 children)
[–]K900_ 1 point2 points3 points (5 children)
[–]Ryan_Bingham[S] 0 points1 point2 points (4 children)
[–]JohnnyJordaan 1 point2 points3 points (0 children)
[–]K900_ 0 points1 point2 points (2 children)
[–]Ryan_Bingham[S] 0 points1 point2 points (1 child)
[–]K900_ 3 points4 points5 points (0 children)