Answer the question
In order to leave comments, you need to log in
How are HTTP headers separated from the body now?
You need to separate the headers from the body. To do this, you need to find the first occurrence of the double transfer and everything that follows is the body.
But line breaks can be different - \r\n\r\n, \r\r and even \n\n
Does that mean you need to check the entry first, and then pull it out?
The site I'm interested in uses something like \r\n\r\n.
Looked at several other sites - everywhere \r\n\r\n is used. Even on linux.org.
Maybe this is already being introduced as a standard \r\n\r\n for the HTTP protocol?
Answer the question
In order to leave comments, you need to log in
\r\n
, also known as CR LF or 0A 0D
or 10 13
.
Yes, this is the standard. And it's not "already being introduced", but it has always been.
https://en.wikipedia.org/wiki/List_of_HTTP_header_...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question