Size of a remote URL
Peter Kleiweg
in.aqua.scribis at nl.invalid
Mon Aug 30 15:27:35 EDT 2004
Justin schreef:
> http://www.google.com/search?hl=en&lr=&ie=UTF-8&safe=off&output=search&num=5&q=temp+filetype%3Adoc
>
> Go to that URL. The first two search results do not return a
> Content-Length Header. Yet IE still knows how big they are somehow,
> whereas my code doesn't.
Look again:
~ lwp-request -m HEAD 'http://www.ecs.soton.ac.uk/~harnad/Temp/Ariadne-RAE.doc'
200 OK
Connection: close
Date: Mon, 30 Aug 2004 19:26:01 GMT
Accept-Ranges: bytes
ETag: "f10f630-9a800-3ea2ba8e"
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12
OpenSSL/0.9.6b DAV/1.0.3 PHP/4.3.2 mod_perl/1.26
Content-Length: 632832
Content-Type: application/msword
Last-Modified: Sun, 20 Apr 2003 15:19:42 GMT
--
Peter Kleiweg L:NL,af,da,de,en,ia,nds,no,sv,(fr,it) S:NL,de,en,(da,ia)
info: http://www.let.rug.nl/~kleiweg/ls.html
More information about the Python-list
mailing list