Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 55681 invoked from network); 19 Jan 2005 21:42:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jan 2005 21:42:19 -0000 Received: (qmail 69097 invoked by uid 500); 19 Jan 2005 21:42:19 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 69079 invoked by uid 500); 19 Jan 2005 21:42:18 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 69066 invoked by uid 99); 19 Jan 2005 21:42:18 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from relay.jaalam.net (HELO relay.jaalam.net) (209.139.228.35) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 19 Jan 2005 13:42:17 -0800 Received: from jsrvr8.jaalam.net ([172.16.128.105]) by relay.jaalam.net (SMSSMTP 4.0.0.59) with SMTP id M2005011913421415884 for ; Wed, 19 Jan 2005 13:42:14 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4FE6F.BD20BFF8" Subject: logging problem and inputstream problem Date: Wed, 19 Jan 2005 13:42:14 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: logging problem and inputstream problem thread-index: AcT+b7zMxqmfSzYuSF6W31ESy6CUgw== From: "Patrick Mauro" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4FE6F.BD20BFF8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have two problems and they both strike me as odd, though that's probably just because I do not know the internal workings of commons-httpclient. =20 1) I have a routine that sends a request to a web server and receives a file back. It works if I use getResponseBody(), I get an array of bytes. If I use getResponseBodyAsStream() I do not appear to get any data. However, if I call getResponseBody() before calling getResponseBodyAsStream(), then I get data from the stream. =20 I wonder if there is some sort of buffering type thing going on here that I don't understand. =20 2) I used log4j to do logging here. However, after I run Httpclient's executeMethod(...) then I no longer get any logging output from log4j. I know that HttpClient does some of its own logging, could this be conflicting and shutting down my logger? =20 Thanks! If you need me to output debug info or some code, I can. =20 Patrick Mauro=20 Software Developer Apparent Networks, Inc. The Hudson House=20 Suite 400 - 321 Water Street=20 Vancouver, BC, Canada, V6B 1B8=20 e pmauro@apparentnetworks.com=20 t 604 433 2333 Ext. 104=20 f 604 433 2311=20 www.apparentnetworks.com =20 =20 ------_=_NextPart_001_01C4FE6F.BD20BFF8--