You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Mike Ma <ja...@hotmail.com> on 2003/08/26 06:26:41 UTC

Help -- Proxy continue

I received two messages, confirm request and welcome message, from  
commons-httpclient-dev-help@jakarta.apache.org. But the 
commons-httpclient-dev@jakarta.apache.org seems to write-only to me: I can 
post message to it, but never receive any message from it.

I posted a help message "Help -- Proxy" yesterday about configurating a 
proxy. I saw it through the mailing list archive. Thank Michael Becke and 
Ortwin Qlueck for quick help. Now It works if I construct NTCredentials: new 
NTCredentials(username, password, "", ""). It will throw 
NULLPointerException if I do this: new NTCredentials(username, 
password,null, null);

Even though it works now, I still do not know any meanings of domain and 
host in the NTCredentials's Constructor.

Thanks again
Mike

_________________________________________________________________
Help protect your PC: Get a free online virus scan at McAfee.com. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


Re: Help -- Proxy continue

Posted by Adrian Sutton <ad...@intencha.com>.
Hi Mike,
> Even though it works now, I still do not know any meanings of domain and
> host in the NTCredentials's Constructor.

The documentation for this has just recently been updated in CVS.

Essentially, domain is the NT domain you are authenticating with.  If you
have your user name in the form DOMAIN\user then "DOMAIN" is your domain and
you should specify the user as just "user".

The host parameter is the host from which the authentication request is
coming from - in other words, the current machine name.

If you haven't already, check out the authentication guide at
http://jakarta.apache.org/commons/httpclient/authentication.html

Hope that helps,

Adrian Sutton.

----------------------------------------------
Intencha "tomorrow's technology today"
Ph: 38478913 0422236329
Suite 8/29 Oatland Crescent
Holland Park West 4121
Australia QLD
www.intencha.com


> 

> 
> Thanks again
> Mike
> 
> _________________________________________________________________
> Help protect your PC: Get a free online virus scan at McAfee.com.
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
>