# Protocol for Sending Headers

**URL:** <https://community.postman.com/t/protocol-for-sending-headers/53305>\
**Category:** Help Hub\
**Tags:** headers\
**Created:** [October 15, 2023, 3:56pm UTC](https://community.postman.com/t/protocol-for-sending-headers/53305 "2023-10-15T15:56:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djquecke](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/djquecke/32/26171_2.png) [@djquecke](https://community.postman.com/u/djquecke)\
**Post date:** [October 15, 2023, 3:56pm UTC](https://community.postman.com/t/protocol-for-sending-headers/53305/1 "2023-10-15T15:56:40Z")

</div>

Hi, I’m working on an app based on my research here. Some of the workflow here is behind the scenes and I need to understand that flow.

How do the headers get sent out? Do I create one larger message with the headers and request as one big block of text? Or, do the headers get send as separate blocks?

Works great in Postman but I’m working outside of Postman on this request.

Thanks,  
dj

---

<div class="post-metadata">

**Author:** ![xk0der](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/xk0der/32/2056_2.png) [@xk0der](https://community.postman.com/u/xk0der)\
**Post date:** [October 15, 2023, 9:20pm UTC](https://community.postman.com/t/protocol-for-sending-headers/53305/2 "2023-10-15T21:20:49Z")

</div>

Hey @djquecke 👋 Welcome to the community!

I’m guessing you are trying to understand how the HTTP protocol works? For that I would suggest checking out this good resource to get you started: [An overview of HTTP - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview)

In short, HTTP is a text-based protocol, and every HTTP request will contain headers as part of the request, along with any data-payload where applicable.  
For HTTP methods that can accept body-payload (POST etc) headers and the payload are separated by a single blank line (more specifically `\r\n`). So to answer your question, _headers_ + _data_ are sent together.

**Example POST request:**

```auto
POST /post HTTP/1.1
Host: postman-echo.com
Content-Type: application/json
Content-Length: 39

{
"id": "xyz",
"record": 1
}

```

**In Postman you actually check the exact HTTP request being sent via the Postman Console’s:**

- Send a request within Postman
- Click the `Console` icon at the bottom left
- Expand the request you want to view, by clicking on it
- On the right hand side you should see the `Show raw log` link  
 ![Screenshot 2023-10-16 at 10.04.47](https://us1.discourse-cdn.com/getpostman/original/3X/4/a/4ac0f4ecf21db45d0bd6891e00ce90764f70d292.png)
- Clicking on `Show raw log` will give the exact raw HTTP message being sent to the server, as well as the raw response received back.  
 ![Screenshot 2023-10-16 at 10.16.12](https://us1.discourse-cdn.com/getpostman/original/3X/f/9/f9dc5f42878abb815bb1a096515420a31be41238.png)

If you want to get a deeper understanding of HTTP protocol, have a look at the [HTTP RFC](https://datatracker.ietf.org/doc/html/rfc9110).

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 14, 2023, 9:20pm UTC](https://community.postman.com/t/protocol-for-sending-headers/53305/3 "2023-11-14T21:20:57Z")

</div>

Closed on November 14, 2023, 9:20pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
