3 ms·
I agree with the comments saying it should say "Language + Client library" instead of just language, as there are many ways of doing requests with different lib
by capableweb 5y ago
I agree with the comments saying it should say "Language + Client library" instead of just language, as there are many ways of doing requests with different libraries.
Also, funny enough, the first command I tried didn't work as I expected, but thinking about it, it also seems hard to implement correctly. The cURL command I tried was "curl -v https://google.com/ https://google.com/" but none of the implementations include verbose logging.
Weirdly, JSON is listed there, and it is absolutely not clear how JSON can be considered a language that can make HTTP requests. I wonder what client library that is?
- verhovsky 5y agoThe JSON output just dumps curlconverter's internal representation of a parsed curl command. You could use it if you want to use curlconverter to parse curl commands and then do stuff with that parsing yourself in a language other than JavaScript. You would install the command line tool then use your language's command-running library. For example, from Python: import subprocess import json result = subprocess.run(['curlconverter', '--language', 'json', 'example.com'], capture_output=True, text=True) command = json.loads(result.stdout) print(command)