A
A
aopil2020-04-16 23:54:48
HTTP headers
aopil, 2020-04-16 23:54:48

How is the header data generated?

I'm trying to understand where and how the headers data is generated.
Usually the data can be pulled from html or they are generated by requests.

In this situation, I don’t understand where it comes from:
- x-mag09e7sc-a:
- x-mag09e7sc-b:
- x-mag09e7sc-c:
- x-mag09e7sc-d:
- x-mag09e7sc-f:
- x-mag09e7sc-z:
5e98c4b94c5b5492537918.png

I can’t find this data in html, and I also look at Network requests before that and I don’t find how they get this data.

Link to url: link

Tell me where to dig further and where to look for the generated data.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-04-16
@inoise

Headers are part of the HTTP protocol, which consists of them and the request body. The HTML you're talking about is in the body of the request, and headers are usually ignored. The server gives this data and generates it in the response. When making a request to the server, you form the request headers

A
anikavoi, 2020-04-17
@anikavoi

Hint: The file has a name, content, and attributes. Is there somewhere in the file itself, for example, the time of its creation? No. It's in the attributes.
Similarly, the content of the response headers (!important! the request headers are generated by the client) generates something active that renders html. For example, the header can be substituted in the web server.
For example nginx:
location some-location {
add_header X-my-header my-header-content;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question