> For the complete documentation index, see [llms.txt](https://o2oa.gitbook.io/course/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 自定义HTTP头信息

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

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

或者一次添加多个HttpHeader：

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

如下图所示：

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

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

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