I have a QTcpSocket (or QSslSocket) and I set a proxy with "setProxy".
So the program automatically send a request to the proxy before the data in the buffer.
The request is like that:
CONNECT x.x.x.x:y HTTP/1.1
But it's not possible to change the headers like User-Agent.
It is possible using QNetworkRequest but I need to use QSslSocket !