Hello,
Using sc_serv 2.0.0.29 on x86_64 and noticed that sc_serv does not send any Content-Type header. Is there a way to configure sc_serv to send a Content-Type header so clients can properly determine what type of content is coming from sc_serv (audio/aacplus, audio/mpeg, etc)? I am trying to get the stock Android media player / web browser to properly play audio from a stream from sc_serv by visiting http://<server>/stream but it is just parsing the data as plain text because there is no Content-Type header.
The listen.pls?sid=1 URI is sending Content-Type of audio/x-scpls but that is just for a playlist metafile. I am looking to send Content-Type of the actual stream data (e.g. http://<server>/stream).
I spot checked a few stations listed in the Shoutcast YP and noticed they aren't sending any Content-Type headers either.
Example of the lack of Content-Type header I am seeing for one sc_serv instance:
[email protected] ~ $ curl -vvvs http://83.169.60.44:8000 > /dev/null
* About to connect() to 83.169.60.44 port 8000 (#0)
* Trying 83.169.60.44... connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 83.169.60.44:8000
> Accept: */*
>
{ [data not shown]
Thanks in advance for any help!
Preston
Using sc_serv 2.0.0.29 on x86_64 and noticed that sc_serv does not send any Content-Type header. Is there a way to configure sc_serv to send a Content-Type header so clients can properly determine what type of content is coming from sc_serv (audio/aacplus, audio/mpeg, etc)? I am trying to get the stock Android media player / web browser to properly play audio from a stream from sc_serv by visiting http://<server>/stream but it is just parsing the data as plain text because there is no Content-Type header.
The listen.pls?sid=1 URI is sending Content-Type of audio/x-scpls but that is just for a playlist metafile. I am looking to send Content-Type of the actual stream data (e.g. http://<server>/stream).
I spot checked a few stations listed in the Shoutcast YP and noticed they aren't sending any Content-Type headers either.
Example of the lack of Content-Type header I am seeing for one sc_serv instance:
[email protected] ~ $ curl -vvvs http://83.169.60.44:8000 > /dev/null
* About to connect() to 83.169.60.44 port 8000 (#0)
* Trying 83.169.60.44... connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 83.169.60.44:8000
> Accept: */*
>
{ [data not shown]
Thanks in advance for any help!
Preston
Comment