I noticed some numbers mixed with the response generated by my PHP code, and I can't figure out what's causing it. I've dumbed my PHP script down to just this (what could be simpler?):
<?php echo "testing"; ?>
And I monitor the HTTP response coming from the server (apache), it looks like this:
HTTP/1.1 200 OK Date: Mon, 13 Sep 2004 20:03:21 GMT Server: Apache/2.0.44 (Unix) PHP/4.3.1 Accept-Ranges: bytes X-Powered-By: PHP/4.3.1 Transfer-Encoding: chunked
^^|^^^^ this is the cause -----+
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1
If you don't want the numbers there, don't specify that you accept chunked encoding in your request.
Content-Type: text/html; charset=ISO-8859-1
7 testing 0
Note the "7" and the "0". After some experimenting I believe the first number is the length of the body, then there's the body, and finally a 0 at the end. What gives? How to I get rid of these numbers?
I'm running on linux. The software versions are in the HTTP headers but in case you missed them, apache 2.0.44 and PHP 4.3.1.
And help is appreciated. Thanks.
-Dave
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php