For some reason I have to use plain QTcpSockets to send and receive HTTP headers in plain texts. In direct connection environment it works well. But I'm not quite sure how to use proxy in this case.
From what I know, if a direct HTTP header is
, then the proxi-ed HTTP header should beGET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: whatever
Host: www.example.com
Connection: Keep-Alive
So which one should I choose to send, if my QTcpSocket is used with QAbstractSocket::setProxy()?GET http://www.example.com/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: whatever
Host: www.example.com
Proxy-Connection: Keep-Alive <----------IE
Many thanks.
Bookmarks