Hi,
kann man webkit mit einem proxy nutzen um z.b aus einem firmennetzwerk raus zu arbeiten. (mit und ohne passwort authentifikation beim proxyserver) ?
gruss,
nando
Qt4: Webkit Netzwerkproxy
Hallo,
Ich denke das geht über den ApplicationProxy. Allerdings bekomme ich das hier in der Firma nicht sauber hin, obwohl hier nur ein http-Proxy über Port 80 davor ist.
Bzw.:
Gruß
Elwood
Ich denke das geht über den ApplicationProxy. Allerdings bekomme ich das hier in der Firma nicht sauber hin, obwohl hier nur ein http-Proxy über Port 80 davor ist.
Code: Alles auswählen
QNetworkProxy QNetworkProxy::applicationProxy () [static]Code: Alles auswählen
void QNetworkProxy::setApplicationProxy ( const QNetworkProxy & networkProxy ) [static]Elwood
Hab ich ganz vergessen...sorry,
hier die antwort von den trolls...
Ich meine auch gesehen zu haben, dass die setPorxy Funktion im qt 4.5 snapshot drin war......
Aber so wie oben beschrieben geht es auch
Gruss,
Nando
hier die antwort von den trolls...
> i need a way to use webkit threw a network proxy.
>
> i tried QNetworkProxy but it doesn't work for me...
>
> If i use standard QHttp class and set the proxy it works..... but with
> QNetworkProxy in conjunction with webkit i can not get it running ;(
>
>
> Any ideas ?
This is possible to do, what you need to do is set it by getting the
QNetworkAccessManager from the QWebPage attached to your QWebView and
set the proxy on that one. I.e. something like
QNetworkProxy proxy;
// ...
QNetworkAccessManager* manager;
manager = webview->page()->networkAccessManager();
manager->setProxy(proxy);
The documentation for this class is at:
http://doc.trolltech.com/4.4/qnetworkaccessmanager.html
There is already a suggestion in our task tracker to implement a
setProxy() function which you can track at:
http://trolltech.com/developer/task-tra ... &id=208705
http://trolltech.com/customer/task-trac ... &id=208705
If you run into further problems then please let me know.
Regards,
Andy
Ich meine auch gesehen zu haben, dass die setPorxy Funktion im qt 4.5 snapshot drin war......
Aber so wie oben beschrieben geht es auch
Gruss,
Nando