I just tried a simple test (using SimpleLog) that worked for me as follows:
Created a commons-logging.properties in the classpath containing the following
line:
org.apache.commons.logging.Log = org.apache.commons.logging.impl.SimpleLog
Set classpath to:
CLASSPATH=classes;lib\commons-httpclient-3.0.1.jar;lib\commons-logging-1.0.3.jar;lib\commons-codec-1.2.jar
Invoked:
java -Dorg.apache.commons.logging.simplelog.log.httpclient.wire.header=debug
GetPage http://www.google.com
output:
[DEBUG] header - ->> "GET / HTTP/1.1[\r][\n]"
[DEBUG] header - ->> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
[DEBUG] header - ->> "Host: www.google.com[\r][\n]"
[DEBUG] header - ->> "[\r][\n]"
<...DELETED...>
[DEBUG] header - -<< "Date: Tue, 04 Jul 2006 13:20:18 GMT[\r][\n]"
Response status code: 200
Response body:
<...DELETED...>
Eugeny N Dzhurinsky wrote:
On Tue, Jul 04, 2006 at 06:34:57PM +1000, Paul King wrote:
We use (note the extra httpclient.wire.header):
log4j.logger.org.apache.commons.httpclient=info
log4j.logger.httpclient.wire=info
log4j.logger.httpclient.wire.header=debug
log4j.logger.httpclient.wire.content=debug
but we also have problems with some configurations getting the
information we want.
This doesn't work for me :(
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]