Hi again,

doing that way, i get this message:

2005/06/14 18:17:40:984 CEST [DEBUG] httpclient - [EMAIL PROTECTED]

It give me no information ... This way I dont know whats happening, why am I getting code 411 after execute "executeMethod(method)" ?
I had not this problem with version 2 of  http-client ...

Thanks for answering so quickly,

bye

PS: excuse me if my English isnt very good ...

Oleg Kalnichevski escribi�:

On Tue, Jun 14, 2005 at 05:26:38PM +0200, Rafael Puig Herrador wrote:
Hello Oleg,

I dont understand this: 'post the wire/context log of the HTTP session that exhibits the problem'


Rafael,

By the HTTP session I meant all the HTTP messages sent and received by
HttpClient that are logically related

I have read the logging guide but I dont know what to do, can you help me, please?
How can I show the log of the HTTP Session?
I do this:

System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true"); System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header", "debug"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "debug");
SimpleLog sl = new SimpleLog("org.apache.commons.httpclient");

sl.debug(client); // ?????
int code=client.executeMethod (method);
...

is it OK?, any suggestion?

This should be okay.

Oleg


greetings and thanks

PS: I have upgraded to the version3 RC2 but I have the same problem ...

Oleg Kalnichevski escribi?:

Rafael,

Please follow the instructions of this guide and post the wire/context
log of the HTTP session that exhibits the problem:

http://jakarta.apache.org/commons/httpclient/3.0/logging.html

Oleg
PS: Please also consider upgrading to the latest 3.0 release, which is
3.0 RC2

On Tue, Jun 14, 2005 at 01:37:00PM +0200, Rafael Puig Herrador wrote:


Hi,

using http-client version 2 I had no problem when executing the /executeMethod(method)/ method. This generated all request headers (including Content-Length), but now, using version 3 RC1 I get from this method the code 411 (Length Required), it does not generate the Content-Length header.

Does anyone know what the problem is?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to