On 1 Sep 2003 at 17:29, Francis Turner wrote: > Ulrich Borchers wrote: > > Hi folks, > > > > I am using LWP::UserAgent and want to skip requests ($ua->request) > > that would exceed a certain filesize. I understand that > > > do a head request first and check the content_length field in the > response headers. See LWPCOOK > > Francis
Thank you, that was exactly what I was looking for. But for what reason do not all requests return the content-length field ? http://www.heise.de -> "content-length" not in header ! http://www.heise.de/icons/ho/heise.gif -> content-length=3688, ok Uli MfG Ulrich Borchers -- Dipl.-Inf. Ulrich Borchers MEGABIT Informationstechnik GmbH Karstr. 25, 41068 Mönchengladbach Tel. +49 2161 30898-28