#6125: some servers refuse to responde for requests with Range header(header set by ffmpeg) -------------------------------------+------------------------------------- Reporter: remitamine | Type: defect Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: the issue happen for hls videos served by Turner based websites(TBS,TNT,CN,...) when Range header is set by ffmpeg to bytes=0-. How to reproduce: info copied from https://github.com/rg3/youtube- dl/issues/11800#issuecomment-275037127 with Range: bytes=0- header: {{{ curl http://androidhls- secure.cdn.turner.com/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 -H 'Cookie: hdnea2=expires=1485413964~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=edfa88515c17731bf75b7e5266d357c5' -H 'Range: bytes=0-'
<HTML><HEAD> <TITLE>Access Denied</TITLE> </HEAD><BODY> <H1>Access Denied</H1> You don't have permission to access "http://androidhls-secure.cdn.turner.com/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8" on this server.<P> Reference #18.976a1db8.1485328392.9e0aec5a </BODY> </HTML> }}} without Range: bytes=0- header. {{{ curl http://androidhls- secure.cdn.turner.com/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 -H 'Cookie: hdnea2=expires=1485413964~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=edfa88515c17731bf75b7e5266d357c5' #EXTM3U #EXT-X-VERSION:4 #EXT-X-ALLOW-CACHE:YES #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-KEY:METHOD=AES-128,URI="key4dba0357737a4e6cbb7c78ecd56f2285-0.key",IV=0x00000000000000000000000000000000 #EXTINF:10.01, CARE1011301600016833_Layer6/10964_Period1/segment0.ts ... }}} the header used by ffmpeg: {{{ GET /toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/CARE1011301600016833_Layer6_vod.m3u8 HTTP/1.1 Range: bytes=0- Connection: close Host: androidhls-secure.cdn.turner.com Icy-MetaData: 1 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome) Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: en-us,en;q=0.5 Cookie: hdnea2=expires=1485413869~access=/toon/big/secure/tve/2016-12/CARE1011301600016833_HLS/*~md5=8d0df7fa9764e26bfe297bcdeb3e9453 }}} i can't provide a url for video as it requires specific cookies to be set(expire after a short time) and it's geo restricted to USA. -- Ticket URL: <https://trac.ffmpeg.org/ticket/6125> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac