import_curl
Parse a curl command into a Plunger request without sending it, so you can inspect its method, URL, headers, body, and variables or save it by name for later.
Instructions
Parse a curl command into a Plunger request without sending it: method, URL, headers, body and the
{{variables}} it uses. Use it to check what a curl command would do, or with save_as to keep it in the
user's Saved list so it can be sent later with send_request by name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | Yes | The full curl command, e.g. "curl -X POST https://api.example.com/items -H 'Content-Type: application/json' -d '{...}'". | |
| save_as | No | Also save it in Plunger's Saved list under this name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| group | No | The group a saved request is filed under (`Jira`, `Jira/Issues`). | |
| method | Yes | ||
| headers | Yes | ||
| options | No | What a saved request carries besides its form: `timeout_secs`, `follow_redirects`, `insecure_tls` and `select`. They apply when it is sent by name, unless the call gives its own. | |
| saved_id | No | Set when saved under `save_as`; it now shows in Plunger's Saved list. | |
| body_type | Yes | none, json, form-data or raw. | |
| not_saved | No | Fields of the call that a saved request does not keep (only said when there are some). | |
| form_fields | No | multipart -F fields: "name=value" or "name=@file". | |
| variables_used | Yes | {{variables}} the request uses. |