Sounds like you're doing it the hard way. It will be easier if you just add the log configuration file (sorry, I don't know the JDK's logging API, I use log4j). Also, I'd suggest to enable the complete "httpclient.wire" category, not only the headers... you might be getting something in the context that is not correctly parsed as a header, maybe?
[]s Gus -----Original Message----- From: Rafael Puig Herrador [mailto:[EMAIL PROTECTED] Sent: June 14, 2005 9:27 AM To: HttpClient User Discussion Subject: Re: problems Content-Length - http-client version 3 RC1 Hello Oleg, I dont understand this: 'post the wire/context log of the HTTP session that exhibits the problem' 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.comm ons.httpclient", "debug"); SimpleLog sl = new SimpleLog("org.apache.commons.httpclient"); sl.debug(client); // ????? int code=client.executeMethod (method); ... is it OK?, any suggestion? 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]
