Sorry, I probably should have posted my code... here it is, it's basically just the tutorial code from the home page.

public byte [] getHtmlPage(String url, int methodType) throws IOException {
       byte [] htmlPage = null;
       HttpClient httpclient = new HttpClient();
       HttpMethod method;
       if (methodType == 1) {
           method = new GetMethod(url);
       } else if (methodType == 2 ){
           method = new PostMethod(url);
       } else {
           method = new GetMethod(url);
       }
       httpclient.executeMethod(method);
       htmlPage = method.getResponseBody();
       return htmlPage;
   }


Eric A. Hicks wrote:

Is there a way to supress all the WARNING: and INFO: messages to the console? Here's what I'm getting:

May 10, 2005 4:21:56 PM org.apache.commons.httpclient.HttpMethodBase readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue
May 10, 2005 4:21:57 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseAsStream instead is recommended.


These messages are slowing down my app... I am aware of the issues that are producing these messages, they are acceptable. I just need to supress the messages. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to