Is there an example source code that shows exactly how to set up the
wire log. I looked at the web site and it shows system properties to
set. I did set them in my application. Although, I do not seem to be
getting the level of detail that I would like.
Here is a snippet of my code... is this setup right?
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.HttpMethodBase;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.cookie.CookieSpec;
import org.apache.commons.httpclient.cookie.MalformedCookieException;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.multipart.*;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.methods.RequestEntity;
import org.apache.commons.httpclient.methods.StringRequestEntity;
import org.apache.commons.httpclient.Cookie.*;
import org.apache.commons.httpclient.params.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.*;
import java.util.*;
import java.lang.String.*;
import java.lang.Integer.*;
import java.lang.Long.*;
public class BANKMIJ
{
static String host = "127.0.0.1";
static int port = 443;
static String className = "BANKMIJ";
static Log logger = LogFactory.getLog(className);
public static void main(String[] argv) throws Exception
{
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", "debug");
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.
commons.httpclient", "debug");
-----Original Message-----
From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 3:21 PM
To: HttpClient Project
Subject: Re: Post Method - Content Length Header
Gerdes, Tom wrote:
> (1) I am running a standalone application not using Websphere. Output
> is not directed to a file.
>
Then simple log should work. We will not be able to help you unless you
manage to produce a wire log of the HTTP session.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]