Skip to content
Edith

Docs

Command reference

ed http import-curl

Terminal
ed http import-curl FILE [--collection NAME] [--name NAME] [--json]

Reads one curl command from a text file of up to 1 MB and saves it as a request. The method, URL, query, headers, body and basic or bearer credentials are kept. The request goes into the collection named by --collection, which is created when missing, or into Imported. JSON output reports action and the saved request. A file that cannot be read exits with a not found error, and text that is not a curl command exits with a usage error.