2008/3/27, Eskil Abrahamsen Blomfeldt <[EMAIL PROTECTED]>: > > Fernando Rosado Altamirano wrote: > > > > I obtaind : > > UNEXPECTED RESPONSE: [HTTP/1.0 403 Forbidden > > ... > > X-Squid-Error: ERR_ACCESS_DENIED 0 > > > This is a message from the proxy server and seems to mean that something > in your Squid configuration is denying your application access. Are you > sure it's set up correctly? > > I set up a Squid server locally to test it, and the default > configuration denies any access to ports other than the SSL port (port > 443.) Before I removed this line from the configuration file, I got the > same error message as you do.
I can't change the proxy, but other programs can access the Internet without
any problems (for example maven, eclipse, netbeans...)
Always obtain this :
UNEXPECTED RESPONSE: [HTTP/1.0 403 Forbidden
Server: squid/2.5.STABLE6
Mime-Version: 1.0
Date: Thu, 27 Mar 2008 15:04:34 GMT
Content-Type: text/html
Content-Length: 1044
Expires: Thu, 27 Mar 2008 15:04:34 GMT
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from www.prueba.com
Proxy-Connection: keep-alive
>
> > And finally, if i change :
> >
> > QWebView browser = new QWebView (this);
> >
> > obtain a Error:
>
>
> I am not able to reproduce this problem. Do you think you could provide
> some example code which demonstrates the crash?
>
>
> -- Eskil
Hi, i find when ocurr the error. I reduce the code to this :
class MyWeb extends QMainWindow {
// fields
private QWebView browser;
private QLineEdit field;
private QNetworkProxy proxy;
// ------------------
public MyWeb(QWidget parent) {
super(parent);
// A simple line
field = new QLineEdit(this);
QToolBar toolbar = addToolBar("Actions");
toolbar.addWidget(field);
toolbar.setFloatable(false);
toolbar.setMovable(false);
statusBar().show();
field.returnPressed.connect(this, "open()");
// Config the proxy
this.proxy = new QNetworkProxy (ProxyType.HttpProxy,"192.168.10.250
",45823);
QNetworkProxy.setApplicationProxy(proxy);
// and the browser
browser = new QWebView(this);
setCentralWidget(browser);
// If i coment this lines, crash happens.
// // Set an initial loading page once its up and showing...
// QApplication.invokeLater(new Runnable() {
// public void run() {
// field.setText("http://www.trolltech.com");
// open();
// }
// });
}
public void open() {
String text = field.text();
// trace
System.out.println (text);
QUrl url = new QUrl(text);
System.out.println (url.isValid());
browser.load(url);
}
// ¿Bug? this must be present.
static {
com.trolltech.qt.Utilities.loadQtLibrary("QtCore");
com.trolltech.qt.Utilities.loadQtLibrary("QtNetwork");
}
public static void main(String args[]) {
QApplication.initialize(args);
QApplication.processEvents();
MyWeb widget = new MyWeb(null);
widget.show();
QApplication.exec();
}
hs_err_pid744.log
Description: Binary data
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
