|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? 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? Any will be appriciated. Thanks. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
In article <e6443ee5.0502180053.71e4fa52@posting.google.com >,
suyog.upadhye@wipro.com (suyog) wrote: > Barry Margolin <barmar@alum.mit.edu> wrote in message > news:<barmar-7CEB03.08193817022005@comcast.dca.giganews.com>... > > 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. What 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 More data on which socket? If it's on the server's socket, it sounds like you're not putting the correct Content-Length: header in a POST or PUT request. If it's on the client, it isn't reading the entire response properly. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
In article <e6443ee5.0502180053.71e4fa52@posting.google.com >,
suyog.upadhye@wipro.com (suyog) wrote: > Barry Margolin <barmar@alum.mit.edu> wrote in message > news:<barmar-7CEB03.08193817022005@comcast.dca.giganews.com>... > > 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. What 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 More data on which socket? If it's on the server's socket, it sounds like you're not putting the correct Content-Length: header in a POST or PUT request. If it's on the client, it isn't reading the entire response properly. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** |
|
![]() |
| Outils de la discussion | |
|
|