Talei
7th December 2011, 02:22
Hello,
I have a problem with setting up proxy in QTcpSocket.
I do this by the manual, i.e. set up proxy type, ip, port, set proxy in socket and then connect to i.e "google.com".
Connection states are (signals: stateChanged and error):
state changed: QAbstractSocket::HostLookupState
state changed: QAbstractSocket::ConnectingState
state changed: QAbstractSocket::UnconnectedState
--- sockError error: QAbstractSocket::ProxyProtocolError
I know that proxy is working (checked with FF, it's HTTP proxy) but I don't know why QTcpSocket throw this error.
So the question what this mean: ProxyProtocolError? I read SocketError-enum (http://doc.qt.nokia.com/4.8/qabstractsocket.html#SocketError-enum) but it's unclear to me what this actually means.
Thanks for reply.
Regards
I have a problem with setting up proxy in QTcpSocket.
I do this by the manual, i.e. set up proxy type, ip, port, set proxy in socket and then connect to i.e "google.com".
Connection states are (signals: stateChanged and error):
state changed: QAbstractSocket::HostLookupState
state changed: QAbstractSocket::ConnectingState
state changed: QAbstractSocket::UnconnectedState
--- sockError error: QAbstractSocket::ProxyProtocolError
I know that proxy is working (checked with FF, it's HTTP proxy) but I don't know why QTcpSocket throw this error.
So the question what this mean: ProxyProtocolError? I read SocketError-enum (http://doc.qt.nokia.com/4.8/qabstractsocket.html#SocketError-enum) but it's unclear to me what this actually means.
Thanks for reply.
Regards