User:Thickbrick/HTTP Texture Notes

HTTP Texture Fetching on Different Servers
What different servers to with http GetTexture requests? Maybe this info is useful to someone else too

Second Life Servers
Range requests work as expected, returning status 216, except when asking for ranges that don't overlap the satisfiable byte range. For a texture with size N bytes: $ curl -r N-99999999 --header "Accept: image/x-j2c" -D headers.txt /?texture_id= -o file.j2c Returns the whole texture, with status code 216. What it should do it return status code 416. (See RFC 2616)

Also of note:

Content-Type: text/html; charset=utf-8
 * The response headers contains:
 * The request must have an "Accept: image/x-j2c" header.

Up to and Including 0.7.0.2
Has a bug where the returned data will be one byte short of the requested data.

Current Git Version

 * The response has a proper byte ranges header.
 * Returns 416 with an empty body if the range is not at least partially satisfiable (i.e. start >= length of file.)