|
|
|
|
|
by ken
2449 days ago
|
|
This is neat, but also seems like a code smell. Do people really need to convert between HTTP request formats/languages much? When I see many independent implementations of an N-to-M mapping, it looks like the perfect use case for a standardized interface, like a DSL. In fact, can't HAR do this? I'd love to be able to just pass a HAR string to any HTTP client library, and have it execute that. Or call "dump_har()" (or "--dump-har") on any client, and have it spit out HAR that I can take it to any other client. |
|
1. Open browser inspector, watch API requests for one I'm interested in
2. Right click, "Copy as cURL"
3. Paste into a text editor, remove some unnecessary headers, re-running the curl command to verify that the headers I removed aren't important
4. Convert into python requests so that I can play with the parameters