If you’re lazy like me, just use `requests` debug mode to *almost* get curl commands.
Run your script with:
```bash
HTTPIE_DEBUG=1 python your_script.py
```
It won’t give *perfect* curl, but you’ll see the raw HTTP request. From there, tweaking it into curl is trivial.
Also, +1 for `curlify`—it’s the closest thing to magic for convert python code to curl.
Run your script with:
```bash
HTTPIE_DEBUG=1 python your_script.py
```
It won’t give *perfect* curl, but you’ll see the raw HTTP request. From there, tweaking it into curl is trivial.
Also, +1 for `curlify`—it’s the closest thing to magic for convert python code to curl.
