hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pill, Juergen" <Juergen.P...@softwareag.com>
Subject RE: [PATCH] Re: Bug in Head Method (with authenticated server)
Date Tue, 17 Dec 2002 12:45:59 GMT
Hello Ortwin,

You can use following snippet:

{  // this code is run-able as it is, just compile it
HttpClient client = new HttpClient();
HttpState state = new WebdavState();
Credentials cred = new UsernamePasswordCredentials("guest", "guest");
client.startSession("tamino.demozone.softwareag.com", 80);
state.setCredentials(null, cred); client.setState(state);
HeadMethod method = new
try {
client.executeMethod(method); client.endSession();
} catch (java.io.IOException e) {

Best regards,


 -----Original Message-----
From: 	Ortwin Gl├╝ck [mailto:ortwin.glueck@nose.ch] 
Sent:	Tuesday, December 17, 2002 13.42 PM
To:	Commons HttpClient Project
Subject:	Re: [PATCH] Re: Bug in Head Method (with authenticated

Pill, Juergen wrote:
> Hello Ortwin,
> The patch does work, but it has two side effects:
> 1) info messages are created:
> INFO  [main] org.apache.commons.httpclient.HttpMethod - Recoverable
> exception caught when writing request: 17 Dec 2002 13:01:53,587

When do you get this? What's the code producing this?

> 2) performance is very slow, I believe the second call (rsp=200) does not
> deliever a body, but a content length, now the client waits until the
> is closed.

Looking into it.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message