Details
-
Type:
Task
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 5.0.0
-
Component/s: Network: Proxies, Network: Sockets
-
Labels:None
-
Environment:
Every OS
-
Commits:4cffc72023876645f3973823cdfd204094ebe097
Description
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
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0
Host: x.x.x.x
But it's not possible to change the headers like User-Agent.
It is possible using QNetworkRequest but I need to use QSslSocket !