I am writing PyQt (Python bindings for a fully functional Qt library), and a small part of my application needs a web browser (tooltip, OAuth). So I started using QtWebkit, which, by the way, is fantastic. The only problem is that I would like to allow users for the proxy to use my application.
I read about the QNetworkProxy class in the QtNetwork package and paint that it should do the trick. The only problem is when I create and use a proxy server, it works fine through HTTP, but when I pass it an HTTPS (SSL) URL, it gives me the following errors:
QSslSocket: cannot call unresolved function SSLv3_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function ERR_error_string
Note: when I run ...
QtNetwork.QSslSocket.supportsSsl()
.. it returns false. So the proof of my problem.
Here is my main code (it is right before my creation of my QApplication):
proxy = QtNetwork.QNetworkProxy()
proxy.setType(QtNetwork.QNetworkProxy.Socks5Proxy)
proxy.setHostName('localhost');
proxy.setPort(1337)
QtNetwork.QNetworkProxy.setApplicationProxy(proxy);
, ++, Python, , . .
EDIT: SOCKS5 HTTP-, .