hi there, I extended the debug output of client: if you set the debug option to ON (debug on), the client will print out the XML communication stream between client and server.
Created attachment 11227 [details] changes of extented debug output
Why not just turn on HttpClient's wire.log output? I note, also that bug 28302 for HttpClient is precisely about separating the wire-log of the content of the request from the headers. Mind you, I'm not for or against this patch per-se, I just wanted to understand the motivation, of a not-quite-redundant solution a little better.
Hmmm, does HttpClient's wire.log output offer formatted XML output?
Created attachment 11248 [details] http headers add to debug output!
Of course, HttpClient doesn't do anything with the output it is given, so its wire log will not be nicely formatted. I think I may have misunderstood the patch the first time around. I see now that it doesn't actually *output* anything, it merely formats. Perhaps this should be the behavior always, though? The 11248 patch is more problematic in this regard, because it does output exactly the same headers that HttpClient wire-log support will give you.
I see, but as far as I know, there is no way to configure this at runtime using the debug on command, right? The only way I could enable the wire-log thing was to configure it in log4j. Is this is encapsulated by commons logging and the underlying logger might well be the one of jdk1.4 I see no way to *dynamically* switch this debug logging on or off. Another pro to patch #11248 is that it always logs to system out, while the ordinary logging will go into a file. Additionally, it is much less convenient to take one part of the information (formatted and unchuncked XML) from one source and the headers from another on. Note, this patch only gets active when you explicitly switch on debugging using the debug on command. Because of this I think it is a patch worth to be accepted.
Patch applied
Sorry, there are still some method without debug information.
Created attachment 11302 [details] Additional debugoutputs of remaining WebDAV-methods.