# Modyfing headers in P5 HttpPost request?

**URL:** <https://discourse.processing.org/t/modyfing-headers-in-p5-httppost-request/5713>\
**Category:** Coding Questions\
**Created:** [November 19, 2018, 2:50pm UTC](https://discourse.processing.org/t/modyfing-headers-in-p5-httppost-request/5713 "2018-11-19T14:50:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noxid](https://avatars.discourse-cdn.com/v4/letter/n/5f8ce5/32.png) [@Noxid](https://discourse.processing.org/u/Noxid)\
**Post date:** [November 19, 2018, 2:50pm UTC](https://discourse.processing.org/t/modyfing-headers-in-p5-httppost-request/5713/1 "2018-11-19T14:50:01Z")

</div>

Is it possible to modify the headers of an httpPost request made trough the httpPost() function in P5?For example adding a http authorization header?

> **[Authorization](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization)**
>
> The HTTP Authorization request header contains the credentials to authenticate a user agent with a server, usually after the server has responded with a 401 Unauthorized status and the WWW-Authenticate header.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [November 20, 2018, 4:46am UTC](https://discourse.processing.org/t/modyfing-headers-in-p5-httppost-request/5713/2 "2018-11-20T04:46:54Z")

</div>

I am not an expert on this, but wouldn’t the authorization be added on the server side? What schema are you referring to?

Kf

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 20, 2018, 4:55am UTC](https://discourse.processing.org/t/modyfing-headers-in-p5-httppost-request/5713/3 "2018-11-20T04:55:56Z")

</div>

[p5js.org/reference/#/p5/httpDo](http://p5js.org/reference/#/p5/httpDo)
