Eugene Adell - 2017-09-09

It's an old bug caused by the web server using the chunked Transfer-Encoding, see [https://sourceforge.net/p/streamripper/bugs/193/]

The patch given by Björn in bug 193 is working for me.

This is what I see from a network capture, before applying the patch

GET /proxy/jrn_beat?mp=/stream HTTP/1.1
Accept: */*
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
Icy-Metadata: 1
Connection: close
Host: star.jointil.net:80

HTTP/1.1 200 OK
Server: cc-web/1.6.3
Date: Sat, 09 Sep 2017 21:57:09 GMT
Content-Type: audio/mpeg
Transfer-Encoding: chunked
Connection: close
icy-notice1: <BR>This stream requires <a href="http://www.winamp.com">Winamp</a><BR>
icy-notice2: SHOUTcast DNAS/posix(linux x64) v2.5.1.724<BR>
Accept-Ranges: none
Access-Control-Allow-Origin: *
Cache-Control: no-cache,no-store,must-revalidate,max-age=0
icy-name: Joint Radio Beat
icy-genre: Trance, Trance
icy-br: 192
icy-sr: 44100
icy-url: http://www.jointil.com
icy-pub: 1
icy-metaint: 8192
X-Clacks-Overhead: GNU Terry Pratchett

With the patch, the transfer-encoding is not used by the server

GET /proxy/jrn_beat?mp=/stream HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
Icy-Metadata: 1
Connection: close
Host: star.jointil.net:80

HTTP/1.1 200 OK
Server: cc-web/1.6.3
Date: Sun, 10 Sep 2017 14:10:01 GMT
Content-Type: audio/mpeg
Connection: close
icy-notice1: <BR>This stream requires <a href="http://www.winamp.com">Winamp</a><BR>
icy-notice2: SHOUTcast DNAS/posix(linux x64) v2.5.1.724<BR>
Accept-Ranges: none
Access-Control-Allow-Origin: *
Cache-Control: no-cache,no-store,must-revalidate,max-age=0
icy-name: Joint Radio Beat
icy-genre: Trance, Trance
icy-br: 192
icy-sr: 44100
icy-url: http://www.jointil.com
icy-pub: 1
icy-metaint: 8192
X-Clacks-Overhead: GNU Terry Pratchett
 

Last edit: Eugene Adell 2017-09-10