http_request
NetworkMakes an HTTP request and stores the response.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | — | Target URL, supports variable substitution |
method | string | No | GET | HTTP method
Options: GET, POST, PUT, DELETE, PATCH |
headers | object | No | — | Request headers |
body | string | No | | Request body for POST/PUT/PATCH |
timeout | number | No | 120000 | Request timeout in milliseconds |
retries | number | No | 0 | Number of retries |
retry_delay | number | No | 1000 | Delay between retries in ms |
retry_on_status | array | No | [429,500,502,503,504] | Status codes to retry on |
use_browser_context | boolean | No | false | Use browser fetch to inherit proxy and fingerprint |
Usage Example
RTILA X PROJECT JSON
{
"command": "http_request",
"params": {
"url": "https://learn.rtila.com/api/products.json",
"method": "GET",
"headers": null,
"body": "",
"timeout": 120000,
"retries": 0,
"retry_delay": 1000,
"retry_on_status": [429, 500, 502, 503, 504],
"use_browser_context": false
}
}
Related Scenarios
- View /scenarios/api-interception/2 · api interception
- View /scenarios/error-handling/3 · error handling
Related Learning Articles
Was this helpful?
Thank you for your feedback!