[Xitami] FW: Website using Xitami
Francis Turner
xitami@lists.xitami.org
Tue, 15 Jan 2002 08:47:20 +0100
Keresztfalvi Laszlo wrote:
>On Thu, Jan 10, 2002 at 04:13:30PM +0100, Francis Turner wrote:
>
>>First a default page which gets redirected to index.html (ignore the .1
>>thats caused by the fact I had an index.html in the wget diretory)
>>
>>C:\temp\wget>wget http://www.hanleytime.com/
>>--15:24:41-- http://www.hanleytime.com/
>> => `index.html.1'
>>Connecting to www.hanleytime.com:80... connected!
>>HTTP request sent, awaiting response... 200 OK
>>Length: 1,979 [text/html]
>>
>> 0K 0% @
>>0.00 B/s
>>
>>15:27:38 (0.00 B/s) - Read error at byte 0/1979 (No such file or
>>directory). Ret
>>rying.
>>..
>>^C
>>
>
>Intresting! Where did it know from that the file length will be 1979?
>I've got this (debug enabled trace with wget):
>
>>wget -d www.hanleytime.com
>>
>DEBUG output created by Wget 1.7 on linux-gnu.
>
>parseurl ("www.hanleytime.com") -> host www.hanleytime.com -> opath ->
>dir -> file -> ndir
>newpath: /
>--10:21:28-- http://www.hanleytime.com/
> => `index.html'
>Connecting to www.hanleytime.com:80... Caching www.hanleytime.com <->
>216.175.64.191
>Created fd 3.
>connected!
>---request begin---
>GET / HTTP/1.0
>User-Agent: Wget/1.7
>Host: www.hanleytime.com
>Accept: */*
>Connection: Keep-Alive
>
>---request end---
>
It knows the length because one of th eheaders is the Content-length: field
Unfortunately what seems to happen is Xitami serves up the headers and
then stops
Francis
--
...if the US Government were ever to get really serious about Internet
security, the top players in Microsoft's management hierarchy would find
themselves handcuffed, blindfolded, led onto a tarmac within some obscure
Air Force base, and shot.
-- Thomas C Greene (http://www.theregister.co.uk/content/55/23223.html)