Barry Margolin <barmar@alum.mit.edu> wrote in message news:<barmar-7CEB03.08193817022005@comcast.dca.giganews.com>...
> In article <e6443ee5.0502162240.7e190872@posting.google.com >,
> suyog.upadhye@wipro.com (suyog) wrote:
>
> > Hi All,
> >
> > Is it possible to get the full content of a file by using Range Header
> > in HTTP 1.1? Basically the idea is to use persistent connection with
> > the server and request for next chunk of specific byte range. Can
> > multiple Range requests can be sent to server, connecting only once?
>
> Yes. These are orthogonal features, and nothing precludes using them
> together.
>
> >
> > one more thing I am unable to understand is what is the minimum range
> > i can ask for?Sometimes the folowing error is appearing in the
> > responce. This error string appears after getting some responce (ie.
> > some chunks)
> >
> > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> > <html><head>
> > <title>501 Method Not Implemented</title>
> > </head><body>
> > <h1>Method Not Implemented</h1>
> > <p> to /index.html.en not supported.<br />
> > </p>
> > <hr>
> > <address>Apache/2.0.52 (Win32) Server at EC4SEMI-112316.wipro.com Port
> > 80</address>
> > </body></html>
> >
> > Basically the confusion is with, How the server will act on the
> > subsequent requests. Will it give the full responce (with date,server
> > name and all responce headers) for each request sent and then followed
> > by data? or it will simply gives responce line for first request only
> > and then only data(specified data in subsequent range requests) for
> > subsequent requests?
>
> Each request and response is independent. Every response has to be
> fully formed, with a response code line, response-headers, and an
> optional body. Persistent connections just save the client from having
> to reconnect -- everything else is the same.
Thanks for the suggestion.
The first request is served properly but on subsequent request it is
failing, I have traced the problem and have found that there will be
some more data remaining on the socket after the first request which
causes failure for the 2nd request
So can u please provide me some tips so that i can fix this error