curl-to-ruby: Convert curl commands to ruby's net/http

25-Mar-2022 1856
Ruby's 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: -d/--data, -H/--header, -I/--head, -u/--user, -k/--insecure, --url, and -X/--request.There's probably bugs.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle