Forum Moderators: phranque

Message Too Old, No Replies

question about an HTTP response

         

beernutz

10:51 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



When I query an Apache web server running on UNIX with this:

GET / HTTP/1.1
HOST: WWW

I get the following response:

HTTP/1.1 200 OK
Date: Wed, 07 Sep 2005 22:21:45 GMT
Server: Apache/1.3.33 (Unix) mod_jk/1.2.3-dev PHP/4.3.11 mod_ssl/2.8.22
OpenSSL/
0.9.7e
X-Powered-By: PHP/4.3.11
Transfer-Encoding: chunked
Content-Type: text/html

e40
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
[rest of html omitted]

What is the e40 before the DOCTYPE line? It does not appear to be part
of the entity body as it is ignored by the browser.
Thanks for the help.

mcavic

1:48 am on Sep 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's the length (in hex) of the content that follows.

The server is allowed to break up the transmission that way, if it says "Transfer-Encoding: chunked". There may be multiple blocks of content, each with a size before it.

beernutz

3:01 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



Thanks, that is what I needed to know.