You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Sez <se...@yahoo.es> on 2004/06/17 17:03:43 UTC

Httpclient and mod_auth_ldap in apache2

I try to execute this code,

*************************************************
HttpClient client = new HttpClient();
client.getState().setCredentials( null,null, new
UsernamePasswordCredentials("user", "pwd"));
GetMethod get = new GetMethod("https://website/doc/index.php");

get.setDoAuthentication( true );

try {
	int status = client.executeMethod( get );
	System.out.println(status + "\n" + get.getResponseBodyAsString());
}catch (java.io.IOException e)
{
	System.out.println(e);
}
finally {
	get.releaseConnection();
}
***********************************************

But i have "java.net.ConnectException: Connection refused"
I have apache2 with mod_auth_ldap.What is the problem???? Some body have
some idea?

THANKS


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org