PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Multiple Range requests in HTTP 1.1
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Multiple Range requests in HTTP 1.1

Réponse
 
LinkBack Outils de la discussion
Vieux 17/02/2005, 06h40   #1 (permalink)
suyog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Multiple Range requests in HTTP 1.1

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.
  Réponse avec citation
Vieux 17/02/2005, 13h19   #2 (permalink)
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple Range requests in HTTP 1.1

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 ***
  Réponse avec citation
Vieux 17/02/2005, 13h19   #3 (permalink)
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple Range requests in HTTP 1.1

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 ***
  Réponse avec citation
Vieux 18/02/2005, 08h53   #4 (permalink)
suyog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple Range requests in HTTP 1.1

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
  Réponse avec citation
Vieux 18/02/2005, 08h53   #5 (permalink)
suyog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple Range requests in HTTP 1.1

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
  Réponse avec citation
Vieux 18/02/2005, 14h07   #6 (permalink)
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple Range requests in HTTP 1.1

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 ***
  Réponse avec citation
Vieux 18/02/2005, 14h07   #7 (permalink)
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple Range requests in HTTP 1.1

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 ***
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h48.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16482 seconds with 15 queries