Create and save new requests.
Procedure
- Go to REQUESTS > REPOSITORY.
-
Click the New draft request icon at the top right corner
of the left panel.
You can also use the shortcut Alt + N.
- Choose the HTTP Method in the drop-down list below Method.
- Enter a URL.
-
Click Query parameters > Add query parameter and enter your query parameters.
You can also enter the query parameters directly in the URL text field. The menu on the right allows you to indicate whether the name or value of the query parameters is already encoded.
-
Click Add header and enter the name and value of your
header.
The headers
Host
andContent-Length
cannot be added because their value is automatically defined by your browser. -
In Body, click Add form parameter
to configure your parameter.
You can choose to enter a text or upload a file by expanding the Text drop-down list. You can also click Form to choose whether you want to edit the body using the text editor or by uploading a file.
Example
-
Save your request:
- Click Save as to choose where to save it.
- Expand the Save as drop-down menu and click Copy as cURL to export it in the standard cURL syntax.