Bind WebKit to another interface
-
wrote on 22 Dec 2010, 22:54 last edited by
i can change UserAgent!
i look doc, and cant found info how i can change interface when i load web page
-
wrote on 22 Dec 2010, 23:04 last edited by
Hi :) May be you try receive content with QTcpSocket and set it to QWebView with method setContent?
-
wrote on 22 Dec 2010, 23:08 last edited by
can you get me one example ?
-
wrote on 22 Dec 2010, 23:24 last edited by
See "here":http://doc.qt.nokia.com/4.7-snapshot/network-fortuneclient.html example how receive data from QTcpSocket
See "here":http://www.qtcentre.org/threads/30737-Binding-QTcpSocket-to-a-specific-network-interface example how bind interface
And see "here":http://doc.qt.nokia.com/latest/qwebview.html#setContent declaration of setContent method. -
wrote on 23 Dec 2010, 11:21 last edited by
[quote author="Vass" date="1293060293"]See "here":http://doc.qt.nokia.com/4.7-snapshot/network-fortuneclient.html example how receive data from QTcpSocket
See "here":http://www.qtcentre.org/threads/30737-Binding-QTcpSocket-to-a-specific-network-interface example how bind interface
And see "here":http://doc.qt.nokia.com/latest/qwebview.html#setContent declaration of setContent method. [/quote]My friend, this is not good, becouse only first page loaded by ip!, when i setContent or setHtml, another pages download by default IP (((
I need overload function in QWebView.
can you help ?
-
wrote on 23 Dec 2010, 11:25 last edited by
- i set 188.143.236.68
- 188.143.236.188 - default ip - then is http://foothold.ru - its I )
look log for foothold.ru access :
------------ load by you method :
- 188.143.236.68 - - [23/Dec/2010:13:28:57 +0300] "GET / HTTP/1.1" 200 6326 "-" "My User Agent 0"
------------ after set content or set html : - 188.143.236.188 - - [23/Dec/2010:13:18:30 +0300] "GET /css/foothold.ru.css HTTP/1.1" 200 2995 "http://foothold.ru/" "My User Agent in WEBPAGE"
ip default ((((
-
wrote on 24 Dec 2010, 18:55 last edited by
any answers ?
-
wrote on 24 Dec 2010, 20:59 last edited by
Ok, you need get access to socket of QNetworkAccessManager class. Then you can set your networkAccessManager for QWebPage. But I not have any ideas, how you can do it.
8/8