No, I think the Range (partial GET) field is used for a different purpose.

Eg,. Assume you have a 10 MB file in the server and you have a shared internet 
connection for the client(cyber cafe .. ).

You might like to use Range field for http_get in this environment to download 
a  file from a server.

The procedure can be like : 

Use a http head request , in the response server will also give you the content 
length .
Now, that you know the content length you can spawn the right number of threads 
for download.

Say you are using 4 threads.

thread 1 (connection 1)

GET request with

Range=1-250000

thread 2 (connection 2)

Get 

Range = 250001-500000

so on and so forth for thread 3 and four.

Write the data to four temporary files and when the downloads are complete you 
can add all of them to get the whole file.

For your question : The proxy should pass the request for partial GET. 
If the proxy doesn't allow Range header in GET request then no one can help.

You have to check squid proxy manual for this.

-Saswat




On Wed, 2006-12-13 at 04:15 +0000, Indika Bandara wrote:
> thank you PJH,
> 
> if a http proxy prevents downloads of size larger than, say 10MB is it
> possible to use this method to download files partially.
> 
> when,
> "GET www.abc.com/file.zip"
> sent by client, server replies with the size. so is it this field that
> the proxy reads and prevents the download from proceeding?(i'm
> particularly asking about a squid http proxy)
> 
> if thats true then there is no point in trying to write a client to do
> partial-GET isn't it?
> 
> --- In [email protected], "Paul Herring" <[EMAIL PROTECTED]>
> wrote:
> >
> > On 12/12/06, Indika Bandara <[EMAIL PROTECTED]> wrote:
> > --- In [email protected], "Paul Herring" <pauljherring@> wrote:
> > > > On 12/11/06, Indika Bandara <indikabandara19@> wrote:
> > > > > hello,
> > > > >
> > > > > sorry if this is a wrong question in the wrong place. since
> many
> > > > > knowelegable persons are in this forum thought of askin this
> > > > > (programmers are supposed to know every thing right?)
> > > > >
> > > > >
> > > > > How do the web clients which download files by parts work?(e.g
> > > > > prozilla, download accelerator-DAP etc)
> > > >
> > > > Most downloaders (IE, Mozilla e.g.) download from the site using
> one
> > > > connection, and request all bytes from 0 to <length of file>.
> What the
> > > > clients you're asking about do is make more than one connection
> and
> > > > ask for sub-portions of the file on each connection.
> > >
> > > how is is actually implemented?
> > > a request is normally like
> > >
> > > GET www.abc.com/file.zip
> > >
> > > isn't it? so how can one request portions of a file?
> > 
> > 
> > http://www.ietf.org/rfc/rfc2616.txt
> > 
> > The semantics of the GET method change to a "partial GET" if the
> > request message includes a Range header field. A partial GET
> requests
> > that only part of the entity be transferred, as described in section
> > 14.35. The partial GET method is intended to reduce unnecessary
> > network usage by allowing partially-retrieved entities to be
> > completed without transferring data already held by the client.
> > 
> > 
> > 
> > -- 
> > PJH
> > 
> > #713059 +(1255)- [X]
> > 
> > <SaintAlvus> Does the name Doctor Pavlov ring a bell?
> >
> 
> 
> 
> 
> 
>  

Reply via email to