Copy-Paste cURL Commands
The Copy-Paste cURL Command feature allows you to effortlessly create and sendHTTP requests by using keyboard shortcuts to copy (Cmd + C on macOS or Ctrl + C on Windows) and paste (Cmd + V on macOS or Ctrl + V on Windows) cURL commands directly into the Workflow Editor. This streamlines workflow setup, making it faster, more intuitive, and more efficient.
-
If a valid
cURLcommand is pasted in a Workflow step, it will be parsed into a Send HTTP action with the supported parameters. -
The Send HTTP action created by copying and pasting the
cURLcommand in a Workflow Step, will be added last to the list of actions that the Workflow steps may already have.
Supported Parameters
-
When a
cURLcommand is pasted into the Workflow Editor, only supported parameters are processed. Unsupported parameters are ignored and skipped. -
If any part of the
cURLcommand is invalid, an error or a warning message will pop up in the bottom-right corner of the Workflow Editor and inform you of the issue.
| Parameter | Aliases | Description |
|---|---|---|
| Request | [-X, --request ] <command> | Specifies the HTTP method (e.g., GET, POST, PUT, DELETE) to use. |
| Data | [-d, --data ] <data> | Sends the specified data in request to the HTTP server. |
| Header | [-H, --header ] <header> | Adds a custom header to the request. |
| Cookie | [-b, --cookie ] <header> | Sends the specified data as a cookie in the request. |
| Insecure | ['-k', '--insecure'] | Disables SSL certificate validation. |
| Basic Authentication | ['-u', '--user'] <user:password> | Encodes credentials in Base64 and adds them to the request header. |
| User Agent | ['-A', '--user-agent'] | A string sent by your browser or app that tells servers and networks which application, operating system, version, and vendor you’re using to make the request. |
| GET flag | ['-G', '--get'] | Forces the request type to GET. |
| Head flag | ['-I', '--head'] | Forces the request type to HEAD. |
The
GET flag (-G or --get) forces the HTTP request type to GET, but it can be overridden by the -X or --request flag. The X flag explicitly sets the request method (e.g., POST, PUT, DELETE), and if both flags are used, -X takes precedence. Use these options carefully to ensure your intended HTTP request type is correctly configured.How to use the Copy-Paste cURL Commands in the Workflow Editor
- Start by copying a cURL command For example:
-
Open the Workflow Editor: Navigate to the [Workflow Editor] where you want to add the
cURLcommand. -
Paste the command: Use the keyboard shortcut
Cmd + V(orCtrl + Von Windows) to paste thecURLcommand directly into the Workflow Editor. It will automatically parse into a structuredHTTPAction.
