M
M
Mikhail Smirnov2017-03-22 09:51:11
PHP
Mikhail Smirnov, 2017-03-22 09:51:11

How is the server response formed in php?

Good afternoon!
The start line is followed by headers, as well as the body of the response. For example:

HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Sat, 08 Mar 2014 22:53:46 GMT
Content-Type: application/octet-stream
Content-Length: 7
Last-Modified: Sat, 08 Mar 2014 22:53:30 GMT
Connection: keep-alive
Accept-Ranges: bytes

Wisdom

The response body follows two line breaks after the last header.
how from php it is possible to influence the number of line breaks between the headers and the body of the response?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-03-22
@fortoster80

If you need to increase the number, then start the response body with line breaks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question