cURL Import and design time testing
This section helps you configure the activity via the cURL code snippets, and perform design time testing of the request.
|
- cURL Command Text—Multiline design-time text field where a full cURL command can be pasted. Supports both `cm and bash styles.
- cURL import button—Action button that immediately triggers parsing/import of the current cURL Command Text into the activity (method, URL, headers, body, auth, files).
- Test request button—Action button that executes the configured request at design time. While running, it toggles to Cancel. On completion or cancellation it reverts to Test and updates Report field with formatted response or error.
- Report—Multiline text area used to display the outcome of the last cURL import or design-time test execution (success summary, mapping details, warnings, or errors).
|
|
|
|
本节帮助您定义活动如何通过服务器对自身进行身份验证。
| 身份验证— 选择身份验证方法。可用选项包括:
- 未进行身份验证— 服务器不需要用户验证即可接受您的请求。
-
基本身份验证— 通过用户名和安全密码向接收服务器提供用户验证。
通过选择加号图标并选择所需的选项,在明文密码和安全密码之间切换: “使用纯字符串”和“使用安全字符串” 。
- 持有者令牌— 通过登录后生成的唯一持有者令牌向接收服务器提供用户验证。
- Negotiated authentication—Use the HTTP Negotiate scheme for the runtime to select Kerberos or NTLM (and optionally Digest) based on server challenges. When Authentication is set to Negotiated authentication and Use operating system credentials = True, the current OS user context is used (Windows logon token; on Linux/macOS an existing Kerberos ticket, e.g. from kinit). Set Use operating system credentials = False to enable the Custom credentials field; supply a NetworkCredential (domain / username / password or secure password).
|
|
|
- “其他 Cookie” — 手动将额外的 Cookie 指定为键值对。
- “请求超时” — 指定最长等待时间(以毫秒为单位),如果超出该时间后请求将中止。默认值为 10,000 毫秒(10 秒)。
- 出错时继续— 决定是否应在活动引发错误时继续自动化( True ,默认选项)。要在发生错误时停止自动化,请使用False 。
- 遵循重定向— 决定请求是否应自动遵循服务器提供的 URL 重定向( True ,默认选项)。要忽略重定向并使用初始响应,请使用False 。
- 最大重定向次数— 指定请求在停止之前应遵循的自动重定向次数。默认值为 3。
|
|
| 重试策略类型— 指定重试请求的方法。可用选项包括:
- “不可重试” — 您的请求仅调用服务器一次。如果失败,则不会进行进一步的尝试。
- 基本重试— 失败后按固定延迟时间重试请求。
- 重试计数— 指定重试次数。默认值为 3。
- 延迟— 指定每次重试之间的固定时间 (以毫秒为单位)。默认值为 500 毫秒 (0.5 秒)。
- 使用“之后重试”标头— 确定请求是否应使用服务器推荐的“之后重试”标头( True ,默认选项)。要忽略“Retry-After”标头值,请使用False 。
- 延迟限制— 指定“重试”与“重试后”之间允许的最大延迟(以毫秒为单位)。默认值为 30,000 毫秒 (30 秒)。
- 重试状态代码— 指定应触发重试的状态代码。
- 指数退缩— 随着每次尝试之间延迟的增加而重试。
- 重试计数— 指定重试次数。默认值为 3。
- 初始延迟— 指定第一次重试之前的延迟时间(以毫秒为单位)。默认值为 500 毫秒 (0.5 秒)。
- 乘数— 指定用于增加每个请求失败后延迟的数字。默认值为 2,每次都会使延迟加倍。
- “使用抖动” — 对于延迟,决定是否要添加 0 到 100 毫秒之间的随机偏移量,以避免同步重试(默认为“True” )。
- 使用“之后重试”标头— 确定请求是否应使用服务器推荐的“之后重试”标头( True ,默认选项)。要忽略“Retry-After”标头值,请使用False 。
- 延迟限制— 指定“重试”与“重试后”之间允许的最大延迟(以毫秒为单位)。默认值为 30,000 毫秒 (30 秒)。
- 重试状态代码— 指定应触发重试的状态代码。
|
This section helps you customize how the response will be returned by the server.
|
- Always save tesponse as file—Force writing the response body to disk even when an attachment filename is not inferred.
- Enable debugging info—Enable extended debug capture (raw request/response metadata, headers snapshot, timing, retry details) and output to the response object or during design time testing.
- Output file name—Override the server-provided filename (e.g. from Content-Disposition).
- Output file target folder—Control destination folder for the saved response files.
- If the file already exists—Define collision strategy when a file with the resolved name already exists in the target folder. Options:
- Auto rename—Append incremental suffix (_1, _2, …) to produce a unique filename.
- Replace—Overwrite existing file.
- Stop and discard—
- Abort the save operation (and workflow if the exception is not handled) leaving existing file intact.
|
|
| 响应内容— 从服务器捕获响应并将其存储到变量中,以供日后处理。其中包括:
- 状态码— HTTP 响应状态代码。
- 文本内容— 纯文本形式的响应(如果可用)。
- 二进制内容— 非文本内容的原始响应数据。
- 文件— 将响应保存为文件 ( ILocalResource ) 在下载文件夹中。文件名来自响应标头或自动生成,以避免覆盖文件。
- 标头— 所有 HTTP 响应标头。
- 内容标头— 与响应内容明确相关的标头。例如, Content-Type和Content-Length 。
- RawRequestDebuggingInfo—Optional string containing captured low-level request/response details (e.g. constructed request line, headers, retries, timing) populated only when debugging is enabled; empty string otherwise.
|