On 12 October 2012 12:10, anir ......... <anir1...@gmail.com> wrote: > Thanks For your reply Oleg. > I tried out ProxyClient as mentioned by you and it seems to work :). > But i get the following lines in as warnings in my log files :- > > *2012-10-12 16:17:56,539 WARN [http-8443-Processor68] > protocol.RequestProxyAuthentication - NEGOTIATE authentication error: > Invalid name provided (Mechanism level: Could not load configuration file > C:\Windows\krb5.ini (The system cannot find the file specified))*
The above message should be a big clue to what is wrong with your setup. > *2012-10-12 16:17:56,540 WARN [http-8443-Processor68] > protocol.RequestProxyAuthentication - KERBEROS authentication error: > Invalid name provided (Mechanism level: Could not load configuration file > C:\Windows\krb5.ini (The system cannot find the file specified))* Does the file exist? > * > * > Can you please let me know if there is some problem in the following code. > .. > > * org.apache.http.impl.client.ProxyClient pc = new > org.apache.http.impl.client.ProxyClient();* > * org.apache.http.HttpHost proxyHost = new > org.apache.http.HttpHost(tcp.getProxyHost(), tcp.getProxyPort());* > * org.apache.http.HttpHost targetHost = new org.apache.http.HttpHost(host, > port, "https");* > * org.apache.http.auth.Credentials credentials = > getNTCredentials(tcp.getProxyUser(), tcp.getProxyPassword());* > * socket = pc.tunnel(proxyHost, targetHost, credentials);* > * if (socket.isConnected())* > * {* > * return socket;* > * }* > > ............... > > Thanks, > Anirban > > > > On Thu, Oct 11, 2012 at 8:37 PM, Oleg Kalnichevski <ol...@apache.org> wrote: > >> On Thu, 2012-10-11 at 16:44 +0530, anir ......... wrote: >> > Hi Dave, >> > >> > Thanks for your reply but i can't use the cron job in my present >> > environment . >> > I was looking for some workaround (if any) using httpClient itself. >> > Moreover this is a pretty generalized code for all AuthSchemes and so i >> > don't want to break >> > the uniformity. >> > Thanks for your help . >> > >> > Regards, >> > Anirban >> > >> >> Anirban >> >> NTLM scheme is significantly more complex that basic or digest schemes >> and requires a sequence of three request / response exchanges over a >> persistent connection. You probably should consider using ProxyClient >> provided with HttpClient as of release 4.2 or take up on Dave's offer. >> >> Oleg >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org >> For additional commands, e-mail: httpclient-users-h...@hc.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org