3 ms·
Headers are just text mixed with body and hard to figure out where they stop
by homero 7y ago
Headers are just text mixed with body and hard to figure out where they stop
- speps 7y agoHeaders stop when you have 2 line endings consecutively[1], I don't see why it's hard. [1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.1 https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4....
- londons_explore 7y agoEasy. They stop after \r\n\r\n. There is no other RFC compliant way to end headers.