-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denise,

On 8/14/12 10:36 AM, Denise Wu wrote:
> I would like to be able to control which bytes range I would like
> to receive as a webservice response hosted by apache tomcat I know
> there is something called header range.
> 
> Can anyone provide an example on how to use it?

You are looking for this:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2

Note that the server might simply ignore a "Range" header: this is
often the case with dynamic content. If your servlet (or, rather, the
servlet that ultimately handles the request) does not respect a
client's "Range" header, then the client may get more bytes in the
response than desired. Be sure to read the response headers carefully
to determine what information is actually being returned (i.e. all
bytes, or a range that is not exactly what the client requested).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAqjBIACgkQ9CaO5/Lv0PCWswCfc8rSdE/URw0CCedO2XKFMQVL
pHIAnR20LQ9boWorLe4/bVwqejSJU2T2
=2EWg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to