curl-library
Re: Accept-Ranges problem on 7.17.1
Date: Mon, 20 Sep 2010 11:45:07 -0700
On Mon, Sep 20, 2010 at 05:34:32PM +0800, Hou-xiang ZHU wrote:
> As you can see, the server indicate it "Accept-Ranges:bytes" now, but in
> reality it doesn't, when
> clients send the following message, it will generate "404 not found " error,
> something like this.
> ---------------------
>
> Host: 60.217.245.14
> Accept: */*
> User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
> Pragma: no-cache
> Cache-Control: no-cache
> Range: bytes=0-
> Connection: close
>
> --------------------
>
> Please advice how can we deal with this situation.
A simple workaround for the case you show above is to just not include a
Range: header when the range is the entire file. If your app later needs
a different range and the server returns an error code, then treat the
server from then on as one that doesn't support ranges.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-20