SIGNAL(requestFinished.................
SIGNAL(requestFinished.................
To copy to clipboard, switch view to plain text mode
gives me back
"Invalid HTTP response header"
"Invalid HTTP response header"
To copy to clipboard, switch view to plain text mode
header.setValue( "Host", "67.210.97.226" );
header.setValue( "Port","8000");
header.setValue( "Icy-MetaData", "1");
header.setValue( "User-Agent", "VLC media player" );
QUrl url
("http://67.210.97.226");
url.setPort(8000);
QHttp::ConnectionMode mode
= QHttp::ConnectionModeHttp;
http->setHost(url.host(), mode, url.port());
http->request(header);
connect(http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader&)), this, SLOT(readResponseHeader(const QHttpResponseHeader&)));
connect(http, SIGNAL(requestFinished(int, bool)),
this, SLOT(httpRequestFinished(int, bool)));
QHttpRequestHeader header( "GET", "/stream/2001 HTTP/1.0" );
header.setValue( "Host", "67.210.97.226" );
header.setValue( "Port","8000");
header.setValue( "Icy-MetaData", "1");
header.setValue( "User-Agent", "VLC media player" );
QUrl url("http://67.210.97.226");
url.setPort(8000);
http = new QHttp(this);
QHttp::ConnectionMode mode = QHttp::ConnectionModeHttp;
http->setHost(url.host(), mode, url.port());
http->request(header);
connect(http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader&)), this, SLOT(readResponseHeader(const QHttpResponseHeader&)));
connect(http, SIGNAL(requestFinished(int, bool)),
this, SLOT(httpRequestFinished(int, bool)));
To copy to clipboard, switch view to plain text mode
Bookmarks