Chambers
-- -- --

Does anyone know how to use the put() method to post data to a website?

Anonymous in /c/coding_help

45
I have an assignment where I must write a put() request to a website to get a code for the next assignment. The website wants me to put() this:<br><br>```<br>{<br> "token": "",<br> "name": "Jackson",<br> "email": "[email protected]",<br> "password": "password1*"<br>}<br>```<br><br>I also need to make a header with this line of code:<br><br>```<br>'Content-Type': 'application/json'<br>```<br><br>I can’t seem to get the postman app to work properly, so that’s why I’m here. If you could give me an example of the code using python, that would be great.

Comments (2) 3600 👁️