HTTP-request step
These cube allow send many http requests to another hosts.
Last updated
These cube allow send many http requests to another hosts.
Last updated
HTTP-request step allows you to interact with HTTP & REST APIs
Remember that if parameter value contains characters like "
", "+
", "–
", wrap it in {{#encodeURIComponent}}
parameter value {{/encodeURIComponent}}
Note that choosing the body type (json, x-www-form-urlencoded) you add specific headers.
If your JSON-body includes strings with special characters (like "
), wrap it with {{#escape}}wrapped "text"{{/escape}}
Choose the proper auth (or no one) and the authorisation header will be automatically generated when you send the request.
Enable retry. Retry the request in case of error-code.
Retry count. How many times retry connecting.
Read timeout, ms. Max 180000 — 180 sec.
Connect timeout, ms. Max 5000 — 5 sec.
Certificates. Add (if needed) .PEM text and key
Set the content type to multipart/form-data
Body for that type of request should be the following:
You can add parameters both in URL input, like https://api.directual.com?param1=aaaa¶m2={{field}}
or using Parameters tab. Feel free to add {{fields}}
using .
You can add headers and body for your request, using .
Save API response to the field. Field should be type of json or string. It's easy to parse the response using .
Ignore HTTP-errors. If this option is turned off, scenario will stop executing and call , if any. If it is on, the scenario will continue executing.
Retry non idempotent requests (e.g. POST). have a look at a nice explanation .
Proxy. Add (if needed) proxy. You may (choose IPv4).