Jump to content

Transfer-Encoding: chunked


xiphirx

Recommended Posts

I'm not gonna' do all the havy lifting for you but a quick google for "php header('Transfer-Encoding:" returned some promising results.

http://www.google.com/search?num=100&hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=JvB&q=header(%27Transfer-Encoding%3A+php&btnG=Search

Figured it out by myself.

 

I had to declare the content-length header.

 

like

 

<?PHP

$file = $_SERVER['DOCUMENT_ROOT'] . "where your page is";

header('Content-Length: '. filesize($file));

?>

 

Before the page doesn't know how big the page is, so it transfers in chunks. Now it knows through the Content-Length header and doesn't need to chunk.

 

I guess this is solved now

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.