Home/ Tools/ cURL to Mule
πŸ”

cURL β†’ Mule HTTP Request (Early Access)

Paste a cURL command β†’ get MuleSoft HTTP Request Configuration and Processor XML instantly. Headers and query params are generated as dynamic input parameters per MuleSoft standards.

MuleSoft HTTP Connector cURL 100% Client-Side
Config Name:
Output Mode:
cURL Command
Waiting for input…
HTTP Request Configuration
HTTP Request Processor

How to Use cURL to Mule

Go from a working cURL command to production-ready MuleSoft HTTP Request XML in seconds.

Paste Your cURL

Copy a cURL command from your terminal, Postman, browser DevTools, or any API documentation. Paste it into the left panel.

Choose Output Mode

Select Both for config + processor, Separated for just those two blocks, or Embedded to inline all values in a single processor element.

Tune Options

Enable TLS context for HTTPS, set response timeouts, toggle follow-redirects, or enable streaming mode. All options generate valid Mule XML attributes.

Copy Into Anypoint Studio

Click Copy and paste directly into your Mule project's XML config file. Headers and query params are already wired as dynamic input parameters.

Frequently Asked Questions

What cURL formats are supported?
This tool supports standard cURL commands including --header / -H, --data / -d, --request / -X, --location / -L, --user / -u, --insecure / -k, and URL with query parameters. Multi-line commands with backslash continuations are handled automatically.
What is the difference between output modes?
Both generates an <http:request-config> element and a separate <http:request> processor referencing it via config-ref. Embedded generates a single <http:request> element with host, port, and protocol inlined β€” useful for quick prototyping.
How are headers and query params generated?
Headers are added inside <http:headers> as a DataWeave map expression with each header key-value pair. Query parameters extracted from the URL are added inside <http:query-params> the same way. Both follow MuleSoft's recommended dynamic input parameter standards.
Does this tool handle authentication?
Yes. If --user / -u is detected, basic authentication config is generated. Bearer tokens and API keys in headers are preserved as-is in the headers block. For OAuth, you'll want to configure that separately in Anypoint Studio.
Is my data safe?
Your cURL commands never leave your browser. All parsing happens 100% client-side in JavaScript. No data is sent to any server. cURL commands often contain Authorization headers or API keys β€” they stay on your machine only.

From the Blog

Deeper dives into MuleSoft HTTP connector configuration and integration patterns.

Loading latest articles...

🀠 Find this tool useful?

Manually writing Mule HTTP Request XML from cURL is tedious. If this tool saved you time, a coffee is always appreciated!