Re: IdHTTP1.Get question

Giganews Newsgroups
Subject: Re: IdHTTP1.Get question
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Fri, 15 Jul 2005

"Richard Li" <ljs_19…@hotmail.com> wrote in message
news:A61BB12590D2E240ljs_19…@hotmail.com...

> When I use IdHTTP1.Get to get a partial file from a website,
> It always download the whole file for me. Even I assigned
> IdHTTP1.Request.ContentRangeStart and IdHTTP1.Request.ContentRangeEnd,
> same thing always happens.

That would happen if the server does not support partial downloading to
begin with.  Also, you need to use HTTP v1.1 in order for partial
downloading to work, since HTTP v1.0 does not support it.  Did you set the
ProtocolVersion property to pv1_1 before calling Get()?

Gambit

Replies

In response to

IdHTTP1.Get question posted by Richard Li on Fri, 15 Jul 2005