HTTP Request
Gửi HTTP request có thể cấu hình đầy đủ: query, header, xác thực, body theo kiểu, retry, response theo kiểu hoặc tải về file.
API & HTTPHTTPRequest
Công dụng
Gửi HTTP request có thể cấu hình đầy đủ: query, header, xác thực, body theo kiểu, retry, response theo kiểu hoặc tải về file.
Send a fully-configurable HTTP request: query, headers, auth, typed body, retries, typed response or download to file.
Tham số
| Tham số | Kiểu | Bắt buộc | Mặc định | Mô tả |
|---|---|---|---|---|
| URL | string | Bắt buộc | Ví dụ: https://api.example.com/items Hỗ trợ biến | |
| Method | dropdownGET · POST · PUT · PATCH · DELETE · HEAD · OPTIONS | Bắt buộc | GET | |
| Query params (optional) | multiline | Tùy chọn | JSON object or 'key=value' / 'key: value' lines. Hỗ trợ biến | |
| Headers (optional) | multiline | Tùy chọn | JSON object or 'Key: Value' lines. Hỗ trợ biến | |
| Authentication | dropdownNone · Bearer · Basic · API Key (header) | Tùy chọn | None | |
| Auth value (optional) | string | Tùy chọn | Bearer token, 'user:password' for Basic, or the API key. Hỗ trợ biến | |
| API key header name | string | Tùy chọn | X-API-Key | Header name when Authentication = API Key. Hỗ trợ biến |
| Body type | dropdownNone · JSON · Form (urlencoded) · Raw · File | Tùy chọn | None | |
| Body (optional) | multiline | Tùy chọn | JSON / raw text, or 'key=value' lines for a form body. Ví dụ: {"name": "Bob"} Hỗ trợ biến | |
| Body from file (optional) | file | Tùy chọn | When Body type = File, send this file's bytes. Hỗ trợ biến | |
| Timeout (seconds) | number | Tùy chọn | 60 | |
| Follow redirects | dropdownYes · No | Tùy chọn | Yes | |
| Ignore TLS cert errors | dropdownNo · Yes | Tùy chọn | No | |
| Retries on failure | number | Tùy chọn | 0 | Retry network errors / 5xx this many times. |
| Response type | dropdownAuto · JSON · Text · Save to file | Tùy chọn | Auto | Auto parses JSON when the server says so, else text. |
| Download to file (optional) | file | Tùy chọn | Used when Response type = Save to file. Hỗ trợ biến | |
| Fail on HTTP error (4xx/5xx) | dropdownNo · Yes | Tùy chọn | No | |
| Store response in | variable | Bắt buộc | Ví dụ: response | |
| Store status code in | variable | Tùy chọn | Ví dụ: status | |
| Store response headers in | variable | Tùy chọn | Ví dụ: respHeaders |
Các lệnh API & HTTP khác
Sẵn sàng tự động hóa việc bận rộn?
Bắt đầu dùng thử miễn phí 10 ngày hôm nay. Không cần thẻ, không ràng buộc.