# cURL to Rust

Convert curl to Rust (reqwest). Client-side and secret-safe, with guides for HTTP methods, content types and auth schemes.

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

## Guides

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

---

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