So i have a hash that i want to pass in the body of get request i am currently using requests library from python, i am doing something like this in my code. I am using falcon framework.
requests.get(url, headers=head, data=json.dumps({"user_id": 436186}))
is it the right approach to pass the data in body of get request? Because i am not able to hit the api and getting 400 from the other side i suspect it's because of data not being able to pass in the get request.
Or is there some other library which has the support?
Basically i was mispelling one field of the header that why it was throwing 400 error the above code works fine for sending data in the body of get request, silly mistake indeed
How to pass data in body of a get request in python?