curl-library
Accept-Ranges problem on 7.17.1
Date: Mon, 20 Sep 2010 17:34:32 +0800
Hello:
This is not necessarily a bug report.
Our customer using curl version 7.17.1, with mediaplayer playing video
from internet.
For one site in China, www.youku.com, previously it plays ok.
But one day they found they couldn't play any more. After some
investigation, they found that the server from youku had made some
changes, i,e:
from the youku server ,before:
------------------
HTTP/1.1 200 OK
Content-Type: video/mp4
ETag: "1148975329"
Last-Modified: Mon, 07 Jun 2010 17:20:41 GMT
Content-Length: 26633825
Connection: close
Date: Wed, 09 Jun 2010 06:39:21 GMT
Server: YOUKU.JN
---------------------------
After:
----------------------------
HTTP/1.1 200 OK
Content-Type: video/mp4
Accept-Ranges: bytes
ETag: "2942126420"
Last-Modified: Wed, 01 Sep 2010 23:30:01 GMT
Content-Length: 2335395
Connection: close
Date: Thu, 02 Sep 2010 04:57:54 GMT
Server: YOUKU.JN
----------------------------
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.
Thank you very much!
Hou-xiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-20