HTTP Request

Send a fully-configurable HTTP request: query, headers, auth, typed body, retries, typed response or download to file.

API & HTTPHTTPRequest

概述

HTTP Request 是 AutoFlowRPA 中 API & HTTP 类别下的无代码自动化步骤。 当工作流执行到此处时,它会在单个步骤中完成其操作。 您可以配置 20 个参数,精确控制其行为方式。 它是可在可视化编辑器中拖入工作流的 340 个命令之一,无需编写脚本。

功能说明

Send a fully-configurable HTTP request: query, headers, auth, typed body, retries, typed response or download to file.

参数

参数类型是否必填默认值说明
URLstring
必填
示例: https://api.example.com/items
支持变量
Methoddropdown
GET · POST · PUT · PATCH · DELETE · HEAD · OPTIONS
必填GET
Query params (optional)multiline
可选JSON object or 'key=value' / 'key: value' lines.
支持变量
Headers (optional)multiline
可选JSON object or 'Key: Value' lines.
支持变量
Authenticationdropdown
None · Bearer · Basic · API Key (header)
可选None
Auth value (optional)string
可选Bearer token, 'user:password' for Basic, or the API key.
支持变量
API key header namestring
可选X-API-KeyHeader name when Authentication = API Key.
支持变量
Body typedropdown
None · JSON · Form (urlencoded) · Raw · File
可选None
Body (optional)multiline
可选JSON / raw text, or 'key=value' lines for a form body.
示例: {"name": "Bob"}
支持变量
Body from file (optional)file
可选When Body type = File, send this file's bytes.
支持变量
Timeout (seconds)number
可选60
Follow redirectsdropdown
Yes · No
可选Yes
Ignore TLS cert errorsdropdown
No · Yes
可选No
Retries on failurenumber
可选0Retry network errors / 5xx this many times.
Response typedropdown
Auto · JSON · Text · Save to file
可选AutoAuto parses JSON when the server says so, else text.
Download to file (optional)file
可选Used when Response type = Save to file.
支持变量
Fail on HTTP error (4xx/5xx)dropdown
No · Yes
可选No
Store response invariable
必填
示例: response
Store status code invariable
可选
示例: status
Store response headers invariable
可选
示例: respHeaders

如何使用 HTTP Request

  1. 1

    打开 AutoFlowRPA,将 HTTP Request 命令从 API & HTTP 分组拖放到画布上。

  2. 2

    在侧边面板中设置其参数——HTTP Request 有 20 个可配置字段。

  3. 3

    将它连入你的工作流并点击运行。一切都在你的本机上本地执行。

常见问题

HTTP Request 命令有什么作用?

Send a fully-configurable HTTP request: query, headers, auth, typed body, retries, typed response or download to file.

HTTP Request 命令属于哪个分组?

HTTP Request 属于 API & HTTP 分组。AutoFlowRPA 附带 340+ 个现成命令,无需代码即可组合使用。

HTTP Request 命令需要任何参数吗?

需要——HTTP Request 有 20 个可配置字段,均可在可视化节点编辑器中编辑。

更多 API & HTTP 命令

准备好自动化你的繁琐工作了吗?

立即开始 30 天免费试用。无需信用卡,无任何约束。