Oleg

Your advice needed:

When I import browser proxy settings into HttpClient in applet using:

        DefaultHttpClient hc = new DefaultHttpClient();
        ProxySelectorRoutePlanner routePlanner = new
ProxySelectorRoutePlanner(
            hc.getConnectionManager().getSchemeRegistry(),
            ProxySelector.getDefault()
        );
        hc.setRoutePlanner(routePlanner);
        hc.getProxyAuthenticationHandler();
        ...
        HttpResponse resp = hc.execute(m);

I get the following error:

        "Proxy Authentication Required"

I tried both basic and digest authentication with Squid. When applet
initializes it shows a Java popup window

         "Authentication Required"
         "Enter login details to access Squid proxy proxy-caching webserver
at ..."

and username and password fields and accepts them which means, I assume,
that proxy authenticates applet. My .java.policy is here:

grant {
  permission java.io.FilePermission "<<ALL FILES>>", "read";
  permission java.net.NetPermission "getProxySelector";
  permission java.net.SocketPermission "*","connect,resolve";
};

Applet is signed. What can cause this error?
-- 
View this message in context: 
http://old.nabble.com/RE%3A-Problem-with-Proxy-Basic-Authentication-tp30753803p30807482.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to