473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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
Jun 30 '06 #1
2 1960
ED

"Fraser Tweedale" <s4******@student.uq.edu.au> wrote in message
news:44********@dnews.tpgi.com.au...
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/....html#sec3.6.1

cheers
ED
Jun 30 '06 #2
oooooh right. well that all makes sense then :)

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

t

ED wrote:
"Fraser Tweedale" <s4******@student.uq.edu.au> wrote in message
news:44********@dnews.tpgi.com.au...
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/....html#sec3.6.1

cheers
ED

Jun 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
14
by: Miranda | last post by:
Hi, I have a ASP/vbscript program that generates random passwords. The problem is I need to insert those passwords into an Access database of 327 clients. I have the random password program...
0
by: pd123 | last post by:
I'm new to C# and .net and I'm trying to create a form that will register users in a sql server database. I have the following code but when I run the code I get an error " The name 'Peter' is...
11
by: cdkorzen | last post by:
I'm sorry if this is a rehash, but all I see is the same info. Here's my debacle: I CAN get the PATH_INFO to work. With ANYTHING but ASP. Python, Perl, Cmd files... works fine. ASP can't...
5
by: trig | last post by:
Please help! I am an ICT teacher at a secondary school and my year 12 (AS Level) group need to create a website where data can be sent from a form to a Microsoft Access database. I am trying...
0
by: rnaimon | last post by:
I found the following information on this site, but I am unable to get it to work. All it brings back is the xml page with no data. I am running a Windows 2003 Server with Exchange 2003 Server. ...
25
by: bseakgano | last post by:
I have developed a intranet . Using HTML , SQL and ASP . I have created a table with SQL is just fine . And design a form is just looks fine to me . But when I try to insert Data into the SQL I just...
4
Fary4u
by: Fary4u | last post by:
Hi for the last few months i've just stuck in 1 error & i don't know how to figer it out could any body find out where is the problem gonna be ? it's working fine but when u add product into...
2
by: hakkatil | last post by:
Hi to all, I have a page that inserts excel sheet to access database. I am using asp. What I want to do is to check the inserting record if it is in the database. Basicly checking the dublicate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.