> 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头信息

在很多时间，调用第三方系统服务的时候，需要指定的HTTPHEADER，需要带一些认证标识，或者其他第三方指定的信息，此时需要在发送请求时对httpHeader进行编辑，此篇上要讲述该功能

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

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

或者一次添加多个HttpHeader：

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

如下图所示：

![在服务属性中编辑消息头](https://3148786149-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmN_rNQCcekD6lUTyjN%2F-LsQsiLZLebQkJhK_Qhb%2F-LsQtd9guVfLN80-bxGW%2F3.png?alt=media\&token=2533b4fc-fade-4395-aef1-5bb3a555e539)

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

![点击右侧加号可以引入脚本](https://3148786149-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmN_rNQCcekD6lUTyjN%2F-LsQsiLZLebQkJhK_Qhb%2F-LsQtwBi4Y_GyNxii8UV%2F4.png?alt=media\&token=3e631a55-5dc9-4c96-8db1-03b19a89b681)
