|
|
|
|
|
by rgovostes
2449 days ago
|
|
I've also written a tool that converts curl commands to Python Requests or JavaScript XMLHttpRequest code. It is tested with curl commands generated by Safari, Burp Suite, and Charles Proxy. It can also translate raw HTTP requests, so it can be used when you have a packet capture. The design is modular and separates the frontend (curl) from the backend (Python), so more input and output formats can be added. It tries to be smart about generating "clean" code, so it will, for example, remove the Content-Length header when it can be recomputed from the request content. https://ryan.govost.es/http-translator/ It is also open source. Feedback or pull requests are welcome. https://github.com/rgov/http-translator |
|