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.
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
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.