Content-Length ? Header not!
Are you going to supply any actual information about the issue?
yes !
after get mysite
reponse --> Transfer-Encoding: chunked
i change header filed Content-Length wsgi script but Not reponse Content-length Why http server apache httpd install mod_wsgi https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding help
HTTP/1.1 200 ok Date: Wed, 19 Oct 2022 17:24:47 GMT Server: Apache/2.4.41 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Keep-Alive: timeout=5, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html;charset=utf-8
missing Content-Length
('Content-Length',length)
i want sponser how to
By definition, when using chunked encoding there is no content length header. It is specifically for cases where you don't know the content length up front. So from that doc you will see example output of:
HTTP/1.1 200 OK
Content-Type: text/plain
Transfer-Encoding: chunked
7\r\n
Mozilla\r\n
9\r\n
Developer\r\n
7\r\n
Network\r\n
0\r\n
\r\n
The 0 block at the end is what dictates when there is no more response content, not a content length.
But how does the content length appear?
It doesn't. The client would keep reading blocks until it sees the 0 length block, at which point it would sum up the length of all the blocks if it really needed to know the final length, or more likely to work out if it got complete response before connection was dropped. Ie., connection dropped before saw 0 length block.
If that doesn't explain it am not sure what you are asking.