Hi,

Thanks a lot for your suggestions. It seems that I am now able to pass
the NTLM authentication, but there still some error.
More specifically, 
When I use *method.setFollowRedirects(true);* I get HTTP/1.1 407 Proxy
Authentication Required
While if I set redirect to false I get HTTP/1.1 302 Found
And the response body is:
<HTML><HEAD><meta http-equiv="content-type"
content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.com.sa/";>here</A>.
</BODY></HTML>

After looking at the log -- Hopefully that I didn't misunderstood
anything -- it seems that I am passing the authentication but something
then goes wrong.

Any help please?
Many thanks,


-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 06, 2008 4:58 PM
To: HttpClient User Discussion
Subject: Re: FW: Proxy Authentication Required

Fadi M. Maali wrote:
> I was able to connect to a site using java.net.URL after setting the
> proxy using System.setProperty() . But I am getting a "HTTP/1.1 407
> Proxy Authentication Required" response when I am trying to use
> HttpClient.

Your proxy is probably configured to require NTLM authentication.
Sun JDK on Windows does that automatically, using the Windows
login credentials. HttpClient cannot do that.

http://wiki.apache.org/jakarta-httpclient/FrequentlyAskedNTLMQuestions#h
ead-6176b4c53057743b8762e7505d05d36a34a0446a
http://hc.apache.org/httpclient-3.x/authentication.html

hope this helps,
  Roland


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

IMPORTANT NOTICE: CONFIDENTIAL AND LEGAL PRIVILEGE

This electronic communication is intended by the sender only for the access and 
use by the addressee and may contain legally privileged and confidential 
information. If you are not the addressee, you are notified that any 
transmission, disclosure, use, access to, storage or photocopying of this 
e-mail and any attachments is strictly prohibited. The legal privilege and 
confidentiality attached to this e-mail and any attachments is not waived, lost 
or destroyed by reason of a mistaken delivery to you. If you have received this 
e-mail and any attachments in error please immediately delete it and all copies 
from your system and notify the sender by e-mail. Nothing in this communication 
is intended to operate as an electronic signature under any applicable law...

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

Reply via email to