# Header name must be a valid HTTP token

**URL:** <https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119>\
**Category:** Help Hub\
**Tags:** header\
**Created:** [June 4, 2020, 9:27am UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119 "2020-06-04T09:27:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianr](https://avatars.discourse-cdn.com/v4/letter/i/b5a626/32.png) [@ianr](https://community.postman.com/u/ianr)\
**Post date:** [June 4, 2020, 9:27am UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119/1 "2020-06-04T09:27:45Z")

</div>

Morning all.  
Quick/dumb question that I cant seem to find an answer for.

I’m using Windows 10 Postman app v7.25.2, to try to hit a 3rd party api that I have no control over.  
The 3rd party api needs certain header fields that begin with a colon ‘:’, eg “:authority”.

However, Postman wont let me send a request with that header since its (correctly) considered an invalid header when containing the colon. The console error is:  
Error: Header name must be a valid HTTP token [":authority"]

So the question is: is there any way I can override this checking behavior in Postman to let the request through. I cannot change the 3rd party api.

I’m sure I’m not the first to hit this issue but can’t find anything here or much via google.

Thanks in adv

---

<div class="post-metadata">

**Author:** ![tonytikeasy](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@tonytikeasy](https://community.postman.com/u/tonytikeasy)\
**Post date:** [March 31, 2021, 2:00pm UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119/2 "2021-03-31T14:00:08Z")

</div>

Did you find any solution ?

---

<div class="post-metadata">

**Author:** ![ianr](https://avatars.discourse-cdn.com/v4/letter/i/b5a626/32.png) [@ianr](https://community.postman.com/u/ianr)\
**Post date:** [April 7, 2021, 1:36pm UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119/3 "2021-04-07T13:36:48Z")

</div>

nope, and I guess there’s no easy answer because there’s no other replies to my post 🙂

---

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [April 7, 2021, 6:14pm UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119/4 "2021-04-07T18:14:49Z")

</div>

Colon is an invalid character for the HTTP header as per HTTP standards given in [RFC822](https://www.ietf.org/rfc/rfc822.txt).

There is a discussion on stack overflow regarding acceptable characters in [HTTP headers](https://stackoverflow.com/questions/47687379/what-characters-are-allowed-in-http-header-values).

Postman is throwing an error for header key “:authority” as it is failing the validation for the acceptable HTTP header.

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![ianr](https://avatars.discourse-cdn.com/v4/letter/i/b5a626/32.png) [@ianr](https://community.postman.com/u/ianr)\
**Post date:** [April 7, 2021, 6:28pm UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119/5 "2021-04-07T18:28:50Z")

</div>

Yep, I understand that much already. For me it would’ve been handy to have been able to override that behaviour in Postman though 🙂

---

<div class="post-metadata">

**Author:** ![technical-candidate9](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@technical-candidate9](https://community.postman.com/u/technical-candidate9)\
**Post date:** [September 14, 2022, 4:57pm UTC](https://community.postman.com/t/header-name-must-be-a-valid-http-token/13119/7 "2022-09-14T16:57:55Z")

</div>

The big issue here is with Pseudo-Headers that are used in http/2. They are valid in that spec for specific headers :authority being one of them. Postman does not support http/2.
