I have a file as follows:
{
"http-request": {
"header": {
"method": "POST",
"action": "register",
"httpversion": "1.1",
"host": "customerrequest.com",
"Connection": "keepalive",
"Content-Length": "254",
"Origin": "https://clipboard.customerrequest.com",
"User-Agent": "Chrome/56.0.2924.87 Safari/537.36"
},
"body": {
"email": "jen@gmail.com",
"password": "XXXXXXXX",
"confirm_password": "XXXXXXXX",
"invite_code": "",
"csrf_token": "gshdgagTTDBsbasxgvdfjdkf-TI1kV42pAYhkFXQrKfvJjLYhpR-fJ2WjirVXaQ==",
}
}
}
I need to post this info to the server https://clipboard.customerrequest.com
for server action register. I am a total noob with the whole http request response etc. I just need a little help here understanding
Should I post the whole json as is to the server? If not, what is the best way to post this information to the server?
When I get a response, I want to automatically parse the response and store the information.How can I convert the response body (http I think) to json format?
I want to do this in python. Any resources/libraries I can look at?