Simon Buettner wrote:
> Hello,
> i have an applet application thats needs to execute a PostMethod and a
> Proxy authentication.
>  
> this is my code:
>    if(getProxyInfo() != null)
>          {
>     //Proxy Infos
>           client.getHostConfiguration().setProxyHost(new
> ProxyHost(proxyInfo.getProxyHost(),proxyInfo.getProxyPort()));
>           if(proxyInfo.isNeedCredentials())
>           {
>            client.getState().setProxyCredentials(new
> AuthScope(proxyInfo.getProxyHost(), proxyInfo.getProxyPort(),
> AuthScope.ANY_REALM),proxyInfo.getProxyCredentials());  
>           }
>          }
>     client.executeMethod(filePost);
>  
> I alway get this Exception when adding proxy authentication.
>  
> java.net.SocketException: Connection reset by peer: socket write error

What kind of authentication is it the proxy performs?
Basic Auth or NTLM? What kind of credentials is stored
in your proxyInfo? Does that match?

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to