commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldhoff, Rodney" <rwald...@us.britannica.com>
Subject RE: HttpClient Hanging on executeMethod(HttpMethod)
Date Fri, 03 May 2002 11:53:28 GMT
Try turning on Http Client's logging to get a better sense of what's going
on:

1. Set the system property:
 httpclient.log=org.apache.commons.httpclient.log.SimpleLog
via -D on your java command line or something similiar

2. Create a file in your classpath called simplelog.properties, and add the
line:
 httpclient.simplelog.log.httpclient.wire=info

Now you should see the http conversation dumped out to standard out. This
might provide a better idea on where the problem is happening.

You could also add this property:
 httpclient.simplelog.log.org.apache.commons.httpclient=debug

which will give you pretty verbose debugging messages from various HTTP
Client classes.  Add lines like this:
 httpclient.simplelog.log.<categoryname>=warn

to trim out the categories that aren't helping you.

(If you know how to use/prefer Log4J, set the property
httpclient.log=org.apache.commons.httpclient.log.Log4JCategoryLog, and
configure log4j as you normally would, or don't set the httpclient.log
property at all and simply have log4j in your classpath).

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message