# cURL to Ruby

Convert curl to Ruby (net/http). Client-side and secret-safe, with guides for HTTP methods, content types and auth schemes.

Paste a curl command and get idiomatic Ruby. Parsing and code generation happen entirely in your browser.

## Guides

- [Convert a cURL GET request to Ruby](https://toolpaper.manavdev.site/how-to/curl-get-in-ruby.md): Convert a curl GET command to Ruby (net/http). Paste your command, get idiomatic code — headers, body, auth, and cookies handled.
- [Convert a cURL POST request to Ruby](https://toolpaper.manavdev.site/how-to/curl-post-in-ruby.md): Convert a curl POST command to Ruby (net/http). Paste your command, get idiomatic code — headers, body, auth, and cookies handled.
- [Convert a cURL PUT request to Ruby](https://toolpaper.manavdev.site/how-to/curl-put-in-ruby.md): Convert a curl PUT command to Ruby (net/http). Paste your command, get idiomatic code — headers, body, auth, and cookies handled.
- [Convert a cURL PATCH request to Ruby](https://toolpaper.manavdev.site/how-to/curl-patch-in-ruby.md): Convert a curl PATCH command to Ruby (net/http). Paste your command, get idiomatic code — headers, body, auth, and cookies handled.
- [Convert a cURL DELETE request to Ruby](https://toolpaper.manavdev.site/how-to/curl-delete-in-ruby.md): Convert a curl DELETE command to Ruby (net/http). Paste your command, get idiomatic code — headers, body, auth, and cookies handled.
- [Send JSON with cURL in Ruby](https://toolpaper.manavdev.site/how-to/send-json-with-curl-in-ruby.md): Convert a curl command that sends JSON into Ruby (net/http). Body serialization, Content-Type, and encoding handled correctly.
- [Send form-urlencoded with cURL in Ruby](https://toolpaper.manavdev.site/how-to/send-form-with-curl-in-ruby.md): Convert a curl command that sends form-urlencoded into Ruby (net/http). Body serialization, Content-Type, and encoding handled correctly.
- [Send multipart form-data with cURL in Ruby](https://toolpaper.manavdev.site/how-to/send-multipart-with-curl-in-ruby.md): Convert a curl command that sends multipart form-data into Ruby (net/http). Body serialization, Content-Type, and encoding handled correctly.
- [Send XML with cURL in Ruby](https://toolpaper.manavdev.site/how-to/send-xml-with-curl-in-ruby.md): Convert a curl command that sends XML into Ruby (net/http). Body serialization, Content-Type, and encoding handled correctly.
- [Send GraphQL with cURL in Ruby](https://toolpaper.manavdev.site/how-to/send-graphql-with-curl-in-ruby.md): Convert a curl command that sends GraphQL into Ruby (net/http). Body serialization, Content-Type, and encoding handled correctly.
- [cURL with Bearer token in Ruby](https://toolpaper.manavdev.site/how-to/curl-bearer-auth-in-ruby.md): Convert a curl command using Bearer token to Ruby (net/http). Credentials pass through cleanly and can be redacted before you share.
- [cURL with Basic auth in Ruby](https://toolpaper.manavdev.site/how-to/curl-basic-auth-in-ruby.md): Convert a curl command using Basic auth to Ruby (net/http). Credentials pass through cleanly and can be redacted before you share.
- [cURL with API key in Ruby](https://toolpaper.manavdev.site/how-to/curl-api-key-auth-in-ruby.md): Convert a curl command using API key to Ruby (net/http). Credentials pass through cleanly and can be redacted before you share.
- [Convert cURL to Rails](https://toolpaper.manavdev.site/how-to/curl-in-rails.md): Convert curl commands into Rails (Ruby / net/http). Service objects using net/http or Faraday.

---

Source: https://toolpaper.manavdev.site/curl-to-ruby · Converter: https://toolpaper.manavdev.site/curl-converter