# 自定义HTTP头信息

在流程服务调用活动的调用属性中，可找到“消息头脚本“，在代码框中使用：

```javascript
this.headers.put(“name”, “value”);
```

或者一次添加多个HttpHeader：

```javascript
this.headers.put({
    "name1": "value1",
    "name2": "value2"
});
```

如下图所示：

![在服务属性中编辑消息头](/files/-LsQtd9guVfLN80-bxGW)

当然也可以创建一个脚本，在脚本中写好设置消息头代码，在此处引用。

![点击右侧加号可以引入脚本](/files/-LsQtwBi4Y_GyNxii8UV)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://o2oa.gitbook.io/course/liu-cheng-guan-li/liu-cheng-ying-yong-kai-fa-yu-she-ji/liu-cheng-fu-wu-tiao-yong-huan-jie-shi-yong/zi-ding-yi-http-tou-xin-xi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
