Instantly convert curl commands to Ruby's net/http
net/http is notorious for not having the friendliest API, but it isn't all that bad.
Ruby has great gems like faraday, but in libraries and small utilities it's better to kill your dependencies and use what the stdlib provides.
This tool turns a curl command into ruby (2.0+) code using
net/http. Currently, it knows the following options:
There's probably bugs; please contribute on GitHub. Based on curl-to-go.
Basic Auth ·
Complex JSON ·