Connecting Tech Pros Worldwide Help | Site Map

PHP inserting extra data at start of response body

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 30th, 2006, 09:35 AM
Fraser Tweedale
Guest
 
Posts: n/a
Default PHP inserting extra data at start of response body

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

  #2  
Old June 30th, 2006, 12:45 PM
ED
Guest
 
Posts: n/a
Default Re: PHP inserting extra data at start of response body


"Fraser Tweedale" <s4054522@student.uq.edu.au> wrote in message
news:44a4f160$2@dnews.tpgi.com.au...[color=blue]
> 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[/color]

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

cheers
ED


  #3  
Old June 30th, 2006, 02:05 PM
Fraser Tweedale
Guest
 
Posts: n/a
Default Re: PHP inserting extra data at start of response body

oooooh right. well that all makes sense then :)

cheers. guess I'll read the rfc a bit harder next time :)

t

ED wrote:[color=blue]
> "Fraser Tweedale" <s4054522@student.uq.edu.au> wrote in message
> news:44a4f160$2@dnews.tpgi.com.au...[color=green]
>> 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[/color]
>
> Chunked Transfer-Encoding.
> the hex chars represent the size of the chunk data.
> http://www.w3.org/Protocols/rfc2616/....html#sec3.6.1
>
> cheers
> ED
>
>[/color]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.