PDA

View Full Version : QNetworkAccessmanager and ICY-Server



jörg
10th August 2011, 15:42
I try to read audio-data by using the networkaccess manager and qnetworkrequest.
this works fine for 'normal' http-streaming server.
but when connecting to an ICY-Server, there is a unknown error reported.

Reason for this is in QHttpNetworkReply
in line 483
there is a check for the correct headers
...
if (fragment.length() >= 5 && !fragment.startsWith("HTTP/"))
...

ICY-Servers doesn't send a 'HTTP/1.0 200 OK' but they send a 'ICY 200 OK'
instead.

this is a url for testing this problem:
http://78.159.104.139:80

is there any way to read the audio-data in qt?
in libcurl there is a (dirty) hack for setting http200 aliases....i haven not found something in qt for this case....

every hint is welcome.... ;)

Thank you

jörg
11th August 2011, 12:21
no idea anyone?

jörg
12th August 2011, 13:36
is there really no way to adopt the html protokoll? do i have to use low level socket?