[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Java and auto-proxy doesn't work
From:       Till Krech <till () snafu ! de>
Date:       2002-06-26 21:43:58
[Download RAW message or body]

On Wednesday 26 June 2002 10:50, Michael Goffioul wrote:
> > Yes, this could be done. The url of the page, which contains the applet
> > can be taken for the proxy lookup with proxyForURL(). This setting will
> > then apply to all applets started afterwards, as long as the kjas applet
> > server runs. greetings, till
>
> If there's no objection, could you then implement that as a temporary
> solution?
Could you please try the attached (stupid) patch and look if it works with 
your proxy script. Didn't know how to get the applet/page url in this 
context, so I just took a non existing dummy url which should trigger the 
correct proxy for external urls.
greetings, till
>
> Michael.

-- 
SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP
KDE: 3.0.5 (CVS HEAD >= 20020427)
Qt: 3.0.4

["kjavaappletserver.patch" (text/x-diff)]

Index: kjavaappletserver.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtml/java/kjavaappletserver.cpp,v
retrieving revision 1.50
diff -u -p -r1.50 kjavaappletserver.cpp
--- kjavaappletserver.cpp	2002/06/21 13:04:48	1.50
+++ kjavaappletserver.cpp	2002/06/26 21:36:20
@@ -243,7 +243,12 @@ void KJavaAppletServer::setupJava( KJava
     //check for http proxies...
     if( KProtocolManager::useProxy() )
     {
-        QString httpProxy = KProtocolManager::proxyFor("http");
+        // only proxyForURL honours automatic proxy scripts
+        // we do not know the applet url here so we just use a dummy url
+        // this is a workaround for now
+        // FIXME
+        KURL dummyURL( "http://no.host.no.domain/" );
+        QString httpProxy = KProtocolManager::proxyForURL(dummyURL);
         kdDebug(6100) << "httpProxy is " << httpProxy << endl;
 
         KURL url( httpProxy );

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic