Thank you, Adrian.
So the "domain" is specific to windows operation system. If I run a httpclient application in some Unix, I will have to use a NT user account which is registered in a NT domain and a host.
Another strange thing is happening to my computer. After I disconnect VPN, so I am connecting to outside directly. Now I run the same code with proxy auth, httpclient will redirect any request to a porn site.
[WARN] HttpMethodBase - -Error getting URI host <org.apache.commons.httpclient.HttpException: Redirect from host www.apache.org to www.softcore.org is not supported
....
[WARN] HttpMethodBase - -Invalid Redirect URI from: http://www.apache.org:80/ to: http://www.softcore.org
What part of my computer has been hacked? This is one of reason that I want to sit behind a proxy when connecting outside.
Thanks Mike
From: Adrian Sutton <[EMAIL PROTECTED]> To: Commons HttpClient Project <[EMAIL PROTECTED]> CC: <[EMAIL PROTECTED]> Subject: Re: Help -- Proxy continue Date: Tue, 26 Aug 2003 14:35:38 +1000
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: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
_________________________________________________________________
Get MSN 8 and help protect your children with advanced parental controls. http://join.msn.com/?page=features/parental
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]