> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/then/action/send-https-request-to.md).

# 发送 HTTPS 请求

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-95fd0e0fbab21079d4b81ff4595c5153ef944425%2FThen_Send_HTTPS_1.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## 用途：

\*\*“Send HTTPS Request”（发送 HTTPS 请求）\*\*工作流卡片支持用户向指定 URL 发送 HTTPS 请求，并自定义请求标头、参数和数据载荷。此卡片适用于在工作流中直接集成外部 API 或 Web 服务。

## 卡片组件：

1. **URL**
   * \*\*说明：\*\*指定 HTTPS 请求的发送目标端点。
   * \*\*详细信息：\*\*输入要连接的 API 或 Web 服务的完整 URL。
2. **Headers（请求标头）**
   * \*\*说明：\*\*定义 HTTPS 请求中要包含的请求标头。
   * **详细信息：使用有效的 JSON 格式**提供**键值对**，以指定身份验证令牌或内容类型等请求标头。例如：{"Authorization": "Bearer example\_value"}
3. **Method（方法）**
   * \*\*说明：\*\*指定请求要使用的 HTTP 方法。
   * **选项：**
     * \*\*GET：\*\*从端点获取数据。
     * \*\*POST：\*\*向端点发送数据，以创建或更新资源。
     * \*\*PUT：\*\*更新端点上的现有资源。
     * \*\*DELETE：\*\*从端点删除资源。
4. **Parameters（参数）**
   * \*\*说明：\*\*要作为查询参数包含在 URL 中的键值对。
   * \*\*详细信息：\*\*使用此项发送端点所需的筛选条件或其他数据，并采用有效的 JSON 格式。请参阅 Headers 的示例。
5. **Data（数据）**
   * \*\*说明：\*\*HTTPS 请求的正文。
   * \*\*详细信息：\*\*使用有效的 JSON 格式提供载荷。请参阅 Headers 的示例。

## 功能：

* \*\*条件评估：\*\*只有当 **“Where”** 和 **“And Sections”** 的条件评估结果为 true 时，卡片才会发送 HTTPS 请求。
  * 如果任一条件为 false，则不会发送请求。
* **请求执行：**
  * 条件满足时，系统会根据指定配置发送 HTTPS 请求。

## 设置和配置：

1. \*\*定义 URL：\*\*输入 HTTPS 请求的发送目标端点。
2. \*\*设置请求标头：\*\*以键值对形式提供所需的请求标头。
3. \*\*选择 HTTP 方法：\*\*根据要执行的操作，选择合适的方法（**GET**、**POST**、**PUT** 或 **DELETE**）。
4. \*\*添加参数：\*\*指定端点所需的查询参数。
5. \*\*提供数据载荷：\*\*如有需要，按要求的格式（例如 JSON）输入请求正文。
6. \*\*配置条件：\*\*定义 **“Where”** 和 **“And Sections”**，确保仅在满足特定条件时发送请求。

## 卡片示例：

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-7963ffec3dce52f4dc3a9598552226ecabb33d66%2FThen_Send_HTTPS_2.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

## 总结：

\*\*“Send HTTPS Request”（发送 HTTPS 请求）\*\*工作流卡片可让用户直接从工作流向外部服务发送自定义请求，从而简化 API 集成。通过自动发送 HTTPS 请求并管理响应，此卡片增强了工作流的灵活性和功能。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/then/action/send-https-request-to.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
