View Single Post
Nutrox's Avatar Nutrox Nutrox is offline Super Moderator 17 Creative Assets 2008-11-14 #24 Old  
Well I don't know what has happened to my IE6 then because it handles gzip encoded content fine, it even tells the server it can...

["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate"

This PHP script that is generating gzip encoded data is also being read/displayed by IE6...

Code:
<?php

header( "Pragma: ", true );
header( "Cache-Control: ", true );
header( "Expires: Sat, 01 Jan 2000 00:00:00 GMT", true );
header( "Content-Transfer-Encoding: binary", true );
header( "Content-Type: application/xml", true );

ob_start();
var_dump( $_SERVER );
$raw = ob_get_clean();

$data = "<data>"
      . "<time>" . time() . "</time>"
      . "<message>This is just a little test file.</message>"
	  . "<raw><![CDATA[{$raw}]]></raw>"
      . "</data>";

$data = gzencode( $data );

header( "Content-Encoding: gzip" );
header( "Content-Length: " . strlen( $data ) );

echo( $data );

?>
IE6 version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158
Reply With Quote