Bluehost.com Web Hosting $6.95

question about an HTTP response

This is a discussion on question about an HTTP response within the Linux Web Servers forums, part of the Web Server and Related Forums category; When I query an Apache web server running on UNIX with this: GET / HTTP/1.1 HOST: WWW I get ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-08-2005
bobsweeney@email.com
 
Posts: n/a
Default question about an HTTP response

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.

  #2 (permalink)  
Old 09-08-2005
Andreas Prilop
 
Posts: n/a
Default Re: question about an HTTP response

On 7 Sep 2005 bobsweeney@email.com wrote:

> When I query an Apache web server


Give URL!

  #3 (permalink)  
Old 09-08-2005
Ray Pearce
 
Posts: n/a
Default Re: question about an HTTP response

<bobsweeney@email.com> wrote in message
news:1126133144.474592.268500@z14g2000cwz.googlegr oups.com...
> 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.
>


It is using 'chunked' data, which rather than sending the entire
content-length sends the size of each chunk followed by the chunk of data
itself.


  #4 (permalink)  
Old 09-08-2005
Halderen v AW
 
Posts: n/a
Default Re: question about an HTTP response

bobsweeney@email.com writes:

>When I query an Apache web server running on UNIX with this:
>I get the following response:
>Transfer-Encoding: chunked
>Content-Type: text/html
>
>e40
>[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.


HTTP content can be delivered in different transfer-encodings. You would
expect just the content right? But this is only allowed if the HTTP header
beforehand specifies the size of the content (remember that otherwise
a keep-alive connection could never be implemented). In cases where the
content size (using a Content-Length header) couldn't be determined
beforehand, then Apache choses chunked encoding. In chunked encoded the
peer gets a piece of the content at a time (a chunk), whenever Apache
has a piece available to be delivered. The e40 is the hexadecimal encoding
of the size of the piece. 0xe40 = 3648 bytes. After the last piece, a
piece of zero bytes will be delivered, denoting the end of the input.

You can Google for the exact implementation of the protocol using
a RFC+chunked+HTTP query.

\Berry
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0