Hi Oleg,

Here is the cleaned up code:

     NTCredentials creds = new NTCredentials(username, password,
       "columbus.corp.goo.com", "ent-sales-d2");
     HttpState httpState = new HttpState();
     HttpClient client = new HttpClient();

     httpState.setCredentials(new AuthScope("columbus",
       AuthScope.ANY_REALM, AuthScope.ANY_SCHEME), creds);
     GetMethod get = new GetMethod("
http://columbus.corp.goo.com/default.aspx";);

     get.setDoAuthentication(true);
     client.getParams().setAuthenticationPreemptive(false);
     client.setState(httpState);
     client.executeMethod(get);
...

Do you see any problem?

Thanks,
Jeff

Reply via email to