hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pilot77 <speter...@listpilot.com>
Subject Wire logging of xmlrpc puts each character on separate line
Date Fri, 20 Feb 2009 20:57:17 GMT

I am using Simple Log in HttpClient 3.1 to log wire activity, but every
character in the <xml> header appears on a separate line. As you can see,
after the <xml> header, the logging begins normally although about half the
time, it continues with each character on a separate line.  Any ideas on how
to make the Logging work properly?

INITIALIZE:
    System.setProperty("org.apache.commons.logging.Log",
"org.apache.commons.logging.impl.SimpleLog");
   
System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire",
"debug");
   
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient",
"info");    


LOGGING OUTPUT:

[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "Date: Fri, 20 Feb 2009 20:36:31 GMT[\r][\n]"
[DEBUG] header - << "Server: Apache/2.0.52 (Red Hat)[\r][\n]"
[DEBUG] header - << "X-Powered-By: PHP/5.2.6[\r][\n]"
[DEBUG] header - << "Expires: Sun, 19 Nov 1978 05:00:00 GMT[\r][\n]"
[DEBUG] header - << "Last-Modified: Fri, 20 Feb 2009 20:36:31 GMT[\r][\n]"
[DEBUG] header - << "Cache-Control: store, no-cache,
must-revalidate[\r][\n]"
[DEBUG] header - << "Cache-Control: post-check=0, pre-check=0[\r][\n]"
[DEBUG] header - << "Connection: close[\r][\n]"
[DEBUG] header - << "Content-Length: 4167[\r][\n]"
[DEBUG] header - << "Content-Type: text/xml[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[WARN] HttpMethodBase - Cookie rejected: "$Version=0;
SESSfd0930d0241a430effd4144305fd2671=aqnc7414p3do5spie84n2gar75; $Path=/;
xx.xx.xx"
[DEBUG] content - << "<"
[DEBUG] content - << "?"
[DEBUG] content - << "x"
[DEBUG] content - << "m"
[DEBUG] content - << "l"
[DEBUG] content - << " "
[DEBUG] content - << "v"
[DEBUG] content - << "e"
[DEBUG] content - << "r"
[DEBUG] content - << "s"
[DEBUG] content - << "i"
[DEBUG] content - << "o"
[DEBUG] content - << "n"
[DEBUG] content - << "="
[DEBUG] content - << """
[DEBUG] content - << "1"
[DEBUG] content - << "."
[DEBUG] content - << "0"
[DEBUG] content - << """
[DEBUG] content - << "?"
[DEBUG] content - << ">"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "[\n]"
[DEBUG] content - << "<methodResponse>[\n]"
[DEBUG] content - << "  <params>[\n]"
[DEBUG] content - << "  [\n]"
[DEBUG] content - << "    <value><array><data>[\n]"
[DEBUG] content - << "  <value><struct>[\n]"
[DEBUG] content - << " 
<member><name>externalId</name><value><string>cid_cotton</string></value></member>[\n]"
[DEBUG] content - << " 
<member><name>contentType</name><value><string>directory_entry</string></value></member>[\n]"
...
-- 
View this message in context: http://www.nabble.com/Wire-logging-of-xmlrpc-puts-each-character-on-separate-line-tp22128473p22128473.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message