Re: PHP inserting extra data at start of response body




"Fraser Tweedale" <s4054522@xxxxxxxxxxxxxxxxx> wrote in message
news:44a4f160$2@xxxxxxxxxxxxxxxxxxxx
PHP version: PHP5
Server version: Apache 1.3 and 2.0 (observed on both version)
Platform: observed on Darwin-8.6.0/PPC and FreeBSD-6.1/i686

example:

=====
HTTP/1.1 200 OK
Date: Fri, 30 Jun 2006 09:24:48 GMT
Server: Apache
X-Powered-By: PHP/5.1.4
Content-language: en
ETag: W/"blogurk_wiki:pcache:idhash:1-0!1!0!0!!en!2--20060114114008"
Vary: Accept-Encoding,Cookie
Expires: -1
Cache-Control: private, must-revalidate, max-age=0
Last-modified: Sat, 14 Jan 2006 11:40:08 GMT
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

21af
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"
dir="ltr">
<head>
<meta http-equiv="Content-T...
=====

Things I've noticed:

- browsers don't seem to mind it
- I've only seen hexadecimal characters
- only changes when page content changes (checksum of some kind?)

Can anyone explain this?!

Frase

Chunked Transfer-Encoding.
the hex chars represent the size of the chunk data.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1

cheers
ED


.



Relevant Pages

  • PHP inserting extra data at start of response body
    ... Server version: Apache 1.3 and 2.0 ... Expires: -1 ... Transfer-Encoding: chunked ...
    (comp.lang.php)
  • Re: Browsing issue
    ... Server: Apache ... Expires: Mon, ... Connection closed by foreign host. ...
    (Fedora)
  • Re: apache question
    ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # configuration directives that give the server its instructions. ... Directives that control the operation of the Apache server process as ...
    (alt.php)
  • Re: Apache and SSL
    ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # This is the main Apache server configuration file. ... # configuration directives that give the server its instructions. ...
    (RedHat)
  • Re: Apache vs IIS
    ... Windows Server not on my Linux Server so there for I would chose IIS. ... Not that Apache is bad but ASP.NET is far easier and faster to create good web forms in. ... PHP on a IIS server is rather easy to run once you install PHP on a PC but if you only use PHP why not use Apache for Windows. ...
    (alt.php)