简体   繁体   中英

Set ':authority' header in Postman

I'm currently trying to replicate a https request with the following headers.

在此处输入图像描述

The authentication is based on a Session Cookie. However, there is also a header field called :authority , which I'm not able to replicate in Postman.

在此处输入图像描述

Also, couldn't I find any solution for that problem or what exactly the :authority header means on the Internet. This header seems to be required, as I'm getting a 400 error code back as soon as I send my replicated request.

在此处输入图像描述

I've proxied the request sent from Postman and can confirm that the only difference at the first glance is the missing :authority header. Thanks ^^

Alright, taking a closer look at the Raw Request, I noticed that the actual header is called Host and is mapped in the UI to :autority . Now its working. cheers

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM