Need help with a request post Python script – any tips or examples? or How to properly format a reque

12 Replies, 1095 Views

Not sure if this helps, but I’ve had issues where the server expected form-data instead of JSON. Try switching to:

```python
response = requests.post(url, data=my_data, headers=headers)
```

And yeah, as others said, logging the response is key. Sometimes the error’s in the server’s reply, not your request post Python code.

Messages In This Thread



Users browsing this thread: 1 Guest(s)