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ểuBắt buộcMặc địnhMô tả
URLstring
Bắt buộc
Ví dụ: https://api.example.com/items
Hỗ trợ biến
Methoddropdown
GET · POST · PUT · PATCH · DELETE · HEAD · OPTIONS
Bắt buộcGET
Query params (optional)multiline
Tùy chọnJSON object or 'key=value' / 'key: value' lines.
Hỗ trợ biến
Headers (optional)multiline
Tùy chọnJSON object or 'Key: Value' lines.
Hỗ trợ biến
Authenticationdropdown
None · Bearer · Basic · API Key (header)
Tùy chọnNone
Auth value (optional)string
Tùy chọnBearer token, 'user:password' for Basic, or the API key.
Hỗ trợ biến
API key header namestring
Tùy chọnX-API-KeyHeader name when Authentication = API Key.
Hỗ trợ biến
Body typedropdown
None · JSON · Form (urlencoded) · Raw · File
Tùy chọnNone
Body (optional)multiline
Tùy chọnJSON / 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ọnWhen Body type = File, send this file's bytes.
Hỗ trợ biến
Timeout (seconds)number
Tùy chọn60
Follow redirectsdropdown
Yes · No
Tùy chọnYes
Ignore TLS cert errorsdropdown
No · Yes
Tùy chọnNo
Retries on failurenumber
Tùy chọn0Retry network errors / 5xx this many times.
Response typedropdown
Auto · JSON · Text · Save to file
Tùy chọnAutoAuto parses JSON when the server says so, else text.
Download to file (optional)file
Tùy chọnUsed when Response type = Save to file.
Hỗ trợ biến
Fail on HTTP error (4xx/5xx)dropdown
No · Yes
Tùy chọnNo
Store response invariable
Bắt buộc
Ví dụ: response
Store status code invariable
Tùy chọn
Ví dụ: status
Store response headers invariable
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.