[b]"Having trouble with py requests post? Need help sending data correctly!"[/b] or [b]"How to properly use py req

16 Replies, 778 Views

Hey! Your headers are fine, but double-check if the API needs anything else, like `Accept` or `User-Agent`. Also, some APIs freak out if you don’t include a trailing slash in the URL.

For py requests post, I always start with a simple dict and `json=`. If it fails, I copy the curl command from Postman and translate it to Python. Works every time!

Messages In This Thread



Users browsing this thread: 1 Guest(s)