From httpclient-usersvanessapratt@example.net Tue Jul 01 00:51:05 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 85216 invoked from network); 1 Jul 2008 00:51:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 00:51:05 -0000 Received: (qmail 49495 invoked by uid 500); 1 Jul 2008 00:51:06 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 49471 invoked by uid 500); 1 Jul 2008 00:51:06 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 49460 invoked by uid 99); 1 Jul 2008 00:51:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 17:51:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vanessapratt@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO postman.babycenter.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 00:50:13 +0000 Received: from euclid.babycenter.com (euclid.babycenter.com [83.161.120.155]) by postman.babycenter.com (8.11.6/8.11.6) with ESMTP id m610oWA24679 for <vanessapratt@example.net>; Mon, 30 Jun 2008 17:50:32 -0700 (PDT) Received: from mail pickup service by euclid.babycenter.com with Microsoft SMTPSVC; Mon, 30 Jun 2008 17:50:32 -0700 Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: Too Many Connections Date: Mon, 30 Jun 2008 17:50:31 -0700 Message-ID: <vanessapratt@example.net> In-Reply-To: <1214598305.6039.16.camel@ubuntu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Too Many Connections Thread-Index: AcjYlCX7hd5XohEGT1apeahHYoouIwCgCMsg References: <vanessapratt@example.net> <vanessapratt@example.net> <vanessapratt@example.net> <1214590789.6039.11.camel@ubuntu> <vanessapratt@example.net> <1214598305.6039.16.camel@ubuntu> From: "Ken DeLong" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> Cc: "Stephen Hiley" <vanessapratt@example.net> X-OriginalArrivalTime: 01 Jul 2008 00:50:32.0890 (UTC) FILETIME=[776389A0:01C8DB14] X-Virus-Checked: Checked by ClamAV on apache.org LSBTd2l0Y2hpbmcgdG8gdGhlIE11bHRpVGhyZWFkZWRDb25uZWN0aW9uTWFuYWdlciBkaWRuJ3Qg Zml4IHRoZSBwcm9ibGVtIChjdXJpb3VzbHksIHRoZSAiY29ubmVjdGlvbiBsb2NrZWQiIG1lc3Nh Z2VzIHdlbnQgYXdheSwgdGhvLCBidXQgdGhlIGpvYiBzdGlsbCBmYWlsZWQpDQotIHR1cm5pbmcg b24gaHR0cGNsaWVudC53aXJlPURFQlVHIGNhdXNlZCBpdCB0byBzbG93IGRvd24gc28gbXVjaCB0 aGF0IHRoZSBwcm9ibGVtIHdlbnQgYXdheS4NCg0KV2h5IGlzIGl0IG5vdCByZXVzaW5nIHRoZSBj b25uZWN0aW9uPyANCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IE9sZWcgS2Fs bmljaGV2c2tpIFttYWlsdG86b2xlZ2tAYXBhY2hlLm9yZ10gDQpTZW50OiBGcmlkYXksIEp1bmUg MjcsIDIwMDggMToyNSBQTQ0KVG86IEh0dHBDbGllbnQgVXNlciBEaXNjdXNzaW9uDQpTdWJqZWN0 O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tYW5k cywgZS1tYWlsOiBodHRwY2xpZW50LXVzZXJzLWhlbHBAaGMuYXBhY2hlLm9yZw0KPiANCg0KDQot LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0NClRvIHVuc3Vic2NyaWJlLCBlLW1haWw6IGh0dHBjbGllbnQtdXNlcnMtdW5z dWJzY3JpYmVAaGMuYXBhY2hlLm9yZw0KRm9yIGFkZGl0aW9uYWwgY29tbWFuZHMsIGUtbWFpbDog aHR0cGNsaWVudC11c2Vycy1oZWxwQGhjLmFwYWNoZS5vcmcNCg0K From httpclient-usersvanessapratt@example.net Tue Jul 01 04:33:05 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 69375 invoked from network); 1 Jul 2008 04:33:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 04:33:05 -0000 Received: (qmail 51209 invoked by uid 500); 1 Jul 2008 04:33:06 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 51182 invoked by uid 500); 1 Jul 2008 04:33:06 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 51171 invoked by uid 99); 1 Jul 2008 04:33:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 21:33:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vanessapratt@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO postman.babycenter.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 04:32:13 +0000 Received: from euclid.babycenter.com (euclid.babycenter.com [83.161.120.155]) by postman.babycenter.com (8.11.6/8.11.6) with ESMTP id m614WWA22599 for <vanessapratt@example.net>; Mon, 30 Jun 2008 21:32:32 -0700 (PDT) Received: from mail pickup service by euclid.babycenter.com with Microsoft SMTPSVC; Mon, 30 Jun 2008 21:32:32 -0700 Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: Too Many Connections Date: Mon, 30 Jun 2008 21:32:30 -0700 Message-ID: <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Too Many Connections Thread-Index: AcjYlCX7hd5XohEGT1apeahHYoouIwCgCMsgAAe8W6A= References: <vanessapratt@example.net> <vanessapratt@example.net> <vanessapratt@example.net> <1214590789.6039.11.camel@ubuntu> <vanessapratt@example.net> <1214598305.6039.16.camel@ubuntu> <vanessapratt@example.net> From: "Ken DeLong" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> Cc: "Stephen Hiley" <vanessapratt@example.net> X-OriginalArrivalTime: 01 Jul 2008 04:32:32.0696 (UTC) FILETIME=[7A9CA380:01C8DB33] X-Virus-Checked: Checked by ClamAV on apache.org SSdtIHNvcnJ5LiAgSXQgdHVybnMgb3V0IHRoYXQgdGhlIDNyZC1wYXJ0eSBhcHAgd2UgYXJlIHVz aW5nIGlzIGFsc28gdXNpbmcgbXlyaWFkcyBvZiBIVFRQIGNvbm5lY3Rpb25zIGFuZCBpbiBmYWN0 IGl0J3MgVEhFSVIgY29kZSAobm9uLWh0dHBjbGllbnQpIHRoYXQgaXMgdGhyb3dpbmcgdGhlI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W5kcywgZS1tYWlsOiBodHRwY2xpZW50LXVzZXJzLWhlbHBAaGMuYXBhY2hlLm9y Zw0KPiANCg0KDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NClRvIHVuc3Vic2NyaWJlLCBlLW1haWw6IGh0dHBjbGll bnQtdXNlcnMtdW5zdWJzY3JpYmVAaGMuYXBhY2hlLm9yZw0KRm9yIGFkZGl0aW9uYWwgY29tbWFu ZHMsIGUtbWFpbDogaHR0cGNsaWVudC11c2Vycy1oZWxwQGhjLmFwYWNoZS5vcmcNCg0K From httpclient-usersvanessapratt@example.net Tue Jul 01 14:40:55 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 78943 invoked from network); 1 Jul 2008 14:40:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jul 2008 14:40:54 -0000 Received: (qmail 3414 invoked by uid 500); 1 Jul 2008 14:40:55 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 3388 invoked by uid 500); 1 Jul 2008 14:40:55 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 3377 invoked by uid 99); 1 Jul 2008 14:40:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 07:40:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO spunkymail-a1.g.dreamhost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 14:40:01 +0000 Received: from [83.161.120.155] (206-75-235-201.fibertel.com.ar [83.161.120.155]) by spunkymail-a1.g.dreamhost.com (Postfix) with ESMTP id 601F0100184 for <vanessapratt@example.net>; Tue, 1 Jul 2008 07:40:21 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Tue, 01 Jul 2008 11:38:13 -0300 From: "Sebastian R. Wain" <vanessapratt@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080421) MIME-Version: 1.0 To: vanessapratt@example.net Subject: Multiple consecutive slashes not normalized in URI's path? X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I see a different behaviour between org.apache.commons.httpclient.URI and java.net.URI normalization. Jython transcript: >>> uri1 = org.apache.commons.httpclient.URI("http://www.domain.org//a//b//c//") >>> uri1.normalize() >>> uri1 http://www.domain.org//a//b//c// >>> uri2 = java.net.URI("http://www.domain.org//a//b//c//") >>> uri2.normalize() http://www.domain.org/a/b/c/ What is the correct way to handle URI's path with multiple slashes? I need to remove it myself? The problem arises when you want to compare two different URIs and there is a need for some canonical representation. Thanks, Seb --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Wed Jul 02 09:59:31 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 91801 invoked from network); 2 Jul 2008 09:59:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jul 2008 09:59:31 -0000 Received: (qmail 77772 invoked by uid 500); 2 Jul 2008 09:59:31 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 77750 invoked by uid 500); 2 Jul 2008 09:59:31 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 77739 invoked by uid 99); 2 Jul 2008 09:59:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 02:59:31 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO qb-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 09:58:41 +0000 Received: by qb-out-1314.google.com with SMTP id e15so1078865qbe.10 for <vanessapratt@example.net>; Wed, 02 Jul 2008 02:59:01 -0700 (PDT) Received: by 83.161.120.155 with SMTP id g1mr6800280wad.123.1214992740646; Wed, 02 Jul 2008 02:59:00 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Wed, 2 Jul 2008 02:59:00 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Wed, 2 Jul 2008 11:59:00 +0200 From: "Quintin Beukes" <vanessapratt@example.net> Sender: vanessapratt@example.net To: "HttpClient User Discussion" <vanessapratt@example.net> Subject: The Cookie jar's lid seems stuck MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 44d9242638373145 X-Virus-Checked: Checked by ClamAV on apache.org Hey, Due to our search engine for one of our sites being hosted on a separate domain, we can't do AJAX requests to the original domain. This isn't much of a problem, as I figured I'd just use HttpClient to make a servlet which is a proxy to the Apache server. So... to ensure session state is still maintained, which is a requirement, I will just proxy the cookies the client sends me as well. I made the following method (the connection manager and parameters are final static members of the class): private HttpEntity proxyRequest(String baseUrl, String getParameters, Cookie[] cookies) throws Exception { DefaultHttpClient httpClient = new DefaultHttpClient(connManager, httpParams); HttpContext context = new BasicHttpContext(httpClient.getDefaultContext()); HttpGet request = new HttpGet(baseUrl + basketUri); CookieStore cookieStore = httpClient.getCookieStore(); for (Cookie c : cookies) { BasicClientCookie newCookie = new BasicClientCookie(c.getName(), c.getValue()); newCookie.setDomain(c.getDomain()); newCookie.setPath(c.getPath()); newCookie.setComment(c.getComment()); if (c.getMaxAge() > 0) { long expiryTime = new Date().getTime() + c.getMaxAge(); newCookie.setExpiryDate(new Date(expiryTime)); } cookieStore.addCookie(newCookie); } HttpResponse response = httpClient.execute(request, context); HttpEntity entity = response.getEntity(); if (entity == null) { throw new NoHttpResponseException("Basket request failed to return a response."); } return entity; } The Cookie[] I pass in, is an array of cookies are received by HttpServletRequest.getCookies(). I stepped the code, and the addCookie() method is definitely being called. When recieving the response on the other side, I make a dump of all received cookies to the output. This output is received by HttpClient and returned to the servlet's output stream. Then what I'm getting is a dump of "0" cookies. So the request is successful, but the cookies added to the store is not being sent to the client. Can anyone see what I'm doing wrong? -- Quintin Beukes --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Wed Jul 02 16:57:48 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 21592 invoked from network); 2 Jul 2008 16:57:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jul 2008 16:57:48 -0000 Received: (qmail 2837 invoked by uid 500); 2 Jul 2008 16:57:48 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 2815 invoked by uid 500); 2 Jul 2008 16:57:48 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 2804 invoked by uid 99); 2 Jul 2008 16:57:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 09:57:48 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ok2consulting.nine.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 16:56:54 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id E8B96198001; Wed, 2 Jul 2008 18:56:42 +0200 (CEST) Received: from [83.161.120.155] 548.727.7156.dclient.hispeed.ch [83.161.120.155]) by ok2consulting.nine.ch (Postfix) with ESMTP id B63CF198001 for <vanessapratt@example.net>; Wed, 2 Jul 2008 18:56:41 +0200 (CEST) Subject: Re: Multiple consecutive slashes not normalized in URI's path? From: Oleg Kalnichevski <vanessapratt@example.net> To: HttpClient User Discussion <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> References: <vanessapratt@example.net> Content-Type: text/plain; charset=utf-8 Date: Wed, 02 Jul 2008 18:56:37 +0200 Message-Id: <1215017797.25823.2.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Tue, 2008-07-01 at 11:38 -0300, Sebastian R. Wain wrote: > Hi, > > I see a different behaviour between org.apache.commons.httpclient.URI > and java.net.URI normalization. > Jython transcript: > > >>> uri1 = > org.apache.commons.httpclient.URI("http://www.domain.org//a//b//c//") > > >>> uri1.normalize() > >>> uri1 > http://www.domain.org//a//b//c// > >>> uri2 = java.net.URI("http://www.domain.org//a//b//c//") > >>> uri2.normalize() > http://www.domain.org/a/b/c/ > > What is the correct way to handle URI's path with multiple slashes? Sebastian, o.a.c.httpclient.URI has been removed in favor of j.n.URI in HttpClient 4.0. Go with j.n.URI. Oleg > I > need to remove it myself? The problem arises when you want to compare > two different URIs and there is a need for some canonical representation. > > Thanks, > Seb > > --------------------------------------------------------------------- > To unsubscribe, e-mail: vanessapratt@example.net > For additional commands, e-mail: vanessapratt@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Wed Jul 02 17:07:02 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 24377 invoked from network); 2 Jul 2008 17:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jul 2008 17:07:02 -0000 Received: (qmail 13415 invoked by uid 500); 2 Jul 2008 17:07:02 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 13391 invoked by uid 500); 2 Jul 2008 17:07:02 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 13380 invoked by uid 99); 2 Jul 2008 17:07:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 10:07:02 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ok2consulting.nine.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 17:06:10 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id A9013198003; Wed, 2 Jul 2008 19:06:26 +0200 (CEST) Received: from [83.161.120.155] 548.727.7156.dclient.hispeed.ch [83.161.120.155]) by ok2consulting.nine.ch (Postfix) with ESMTP id 8D914198001 for <vanessapratt@example.net>; Wed, 2 Jul 2008 19:06:25 +0200 (CEST) Subject: Re: The Cookie jar's lid seems stuck From: Oleg Kalnichevski <vanessapratt@example.net> To: HttpClient User Discussion <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> References: <vanessapratt@example.net> Content-Type: text/plain; charset=utf-8 Date: Wed, 02 Jul 2008 19:06:25 +0200 Message-Id: <1215018385.25823.8.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Wed, 2008-07-02 at 11:59 +0200, Quintin Beukes wrote: > Hey, > > Due to our search engine for one of our sites being hosted on a > separate domain, we can't do AJAX requests to the original domain. > This isn't much of a problem, as I figured I'd just use HttpClient to > make a servlet which is a proxy to the Apache server. > > So... to ensure session state is still maintained, which is a > requirement, I will just proxy the cookies the client sends me as > well. > > I made the following method (the connection manager and parameters are > final static members of the class): > > private HttpEntity proxyRequest(String baseUrl, String > getParameters, Cookie[] cookies) throws Exception > { > DefaultHttpClient httpClient = new DefaultHttpClient(connManager, > httpParams); > HttpContext context = new BasicHttpContext(httpClient.getDefaultContext()); > HttpGet request = new HttpGet(baseUrl + basketUri); > CookieStore cookieStore = httpClient.getCookieStore(); > > for (Cookie c : cookies) > { > BasicClientCookie newCookie = new BasicClientCookie(c.getName(), > c.getValue()); > newCookie.setDomain(c.getDomain()); > newCookie.setPath(c.getPath()); > newCookie.setComment(c.getComment()); > if (c.getMaxAge() > 0) > { > long expiryTime = new Date().getTime() + c.getMaxAge(); > newCookie.setExpiryDate(new Date(expiryTime)); > } > cookieStore.addCookie(newCookie); > } > > HttpResponse response = httpClient.execute(request, context); > HttpEntity entity = response.getEntity(); > > if (entity == null) > { > throw new NoHttpResponseException("Basket request failed to > return a response."); > } > > return entity; > } > > The Cookie[] I pass in, is an array of cookies are received by > HttpServletRequest.getCookies(). > > I stepped the code, and the addCookie() method is definitely being > called. When recieving the response on the other side, I make a dump > of all received cookies to the output. This output is received by > HttpClient and returned to the servlet's output stream. > > Then what I'm getting is a dump of "0" cookies. So the request is > successful, but the cookies added to the store is not being sent to > the client. > > Can anyone see what I'm doing wrong? > Quintin, Adding cookies to the cookie store is just a part of the story. A cookie need to match the origin server in order to be included in subsequent HTTP requests. Apparently there is something wrong with the domain or the expiry date. Take a look at the RequestAddCookies protocol interceptor Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Thu Jul 03 22:13:40 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 17781 invoked from network); 3 Jul 2008 22:13:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jul 2008 22:13:40 -0000 Received: (qmail 1551 invoked by uid 500); 3 Jul 2008 22:13:41 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 1219 invoked by uid 500); 3 Jul 2008 22:13:40 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 1208 invoked by uid 99); 3 Jul 2008 22:13:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 15:13:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vanessapratt@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 22:12:49 +0000 Received: by nf-out-0910.google.com with SMTP id h3so298237nfh.48 for <vanessapratt@example.net>; Thu, 03 Jul 2008 15:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=sRAgB8qPvkuMHhN0k9rQfWF1rETcfKQxYNukbEDCpYY=; b=K17cHvoNIciDuyTIUv8ZKcl1d7TvBC6YPPLXZpBAFCcrGtpooxWSHyGAesFKgZ3bKv wdyulbvf3as05/cKmlOhNx9SnEw/bclAY2pUEIYFXefpnbCCro1po6dtb3FEiEgBE4cf /GFZQn0pibTUIQCBZBuu18KJ+Vh9SCGMFBPMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=D5YCXl+s3d7l/LdvwgDpKlfjc4VGYUTXMnLUDSBNb9JcqbR1XIWNNPksRt3+40Knct d1ZHZRuXL8ZHmr+VOxUPXf3iCU8vaR/e2FX2Nn+7iD/gtnBjmptVPyUcjtjrUu0wd85E uNquQAnUQsJSi+o3M/FDDliJUyg2Qkr/rDp1M= Received: by 83.161.120.155 with SMTP id c14mr59831ebb.181.1215123171922; Thu, 03 Jul 2008 15:12:51 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 3 Jul 2008 15:12:51 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Thu, 3 Jul 2008 15:12:51 -0700 From: "Mike Cumings" <vanessapratt@example.net> To: vanessapratt@example.net Subject: ConnectMethod usage MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hello all, I've got a question as to the usage of the ConnectMethod. From the API, it appears that the only non-deprecated way to create a HTTP CONNECT connection is to construct a ConnectMethod instance, passing in a HostConfiguration object configured for the target/destination host and port. I've modelled this in the test case below: public void testConnect() throws IOException { this.server.setHttpService(new EchoService()); // Set default host this.client.getHostConfiguration().setHost( this.server.getLocalAddress(), this.server.getLocalPort(), Protocol.getProtocol("http")); HostConfiguration hConf = new HostConfiguration(); hConf.setHost( this.server.getLocalAddress(), this.server.getLocalPort()); ConnectMethod conn = new ConnectMethod(hConf); try { this.client.executeMethod(conn); assertEquals(HttpStatus.SC_OK, conn.getStatusCode()); } finally { conn.releaseConnection(); } } At runtime the above fails with the following stack dump: [java] 1) testConnect(org.apache.commons.httpclient.TestConnectMethod)java.lang.IllegalStateException: unsupported protocol: 'localhost' [java] at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Unknown Source) [java] at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Unknown Source) [java] at org.apache.commons.httpclient.HostConfiguration.setHost(Unknown Source) [java] at org.apache.commons.httpclient.HostConfiguration.setHost(Unknown Source) [java] at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source) [java] at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source) [java] at org.apache.commons.httpclient.TestConnectMethod.testConnect(Unknown Source) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) Basically, the hostname:port is being interpreted as an absolute URI such as "localhost:1234" where the scheme is "localhost" and the path is "1234", which then breaks in HttpClient.executeMethod(...): URI uri = method.getURI(); if (hostconfig == defaulthostconfig || uri.isAbsoluteURI()) { // make a deep copy of the host defaults hostconfig = (HostConfiguration) hostconfig.clone(); if (uri.isAbsoluteURI()) { hostconfig.setHost(uri); } } So my question is whether this is a bug or operator error? Thanks in advance, -- Mike Cumings --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Sat Jul 05 12:02:42 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 64065 invoked from network); 5 Jul 2008 12:02:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jul 2008 12:02:41 -0000 Received: (qmail 68925 invoked by uid 500); 5 Jul 2008 12:02:42 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 68906 invoked by uid 500); 5 Jul 2008 12:02:41 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 68895 invoked by uid 99); 5 Jul 2008 12:02:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 05:02:41 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ok2consulting.nine.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 12:01:49 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id BEC80198003; Sat, 5 Jul 2008 14:02:05 +0200 (CEST) Received: from [83.161.120.155] 548.727.7156.dclient.hispeed.ch [83.161.120.155]) by ok2consulting.nine.ch (Postfix) with ESMTP id A603A198001 for <vanessapratt@example.net>; Sat, 5 Jul 2008 14:02:03 +0200 (CEST) Subject: Re: ConnectMethod usage From: Oleg Kalnichevski <vanessapratt@example.net> To: HttpClient User Discussion <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> References: <vanessapratt@example.net> Content-Type: text/plain Date: Sat, 05 Jul 2008 14:02:00 +0200 Message-Id: <1215259320.17374.2.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Thu, 2008-07-03 at 15:12 -0700, Mike Cumings wrote: > Hello all, > > I've got a question as to the usage of the ConnectMethod. From the API, > it appears that the only non-deprecated way to create a HTTP CONNECT > connection is to construct a ConnectMethod instance, passing in a > HostConfiguration object configured for the target/destination host and port. > I've modelled this in the test case below: > > public void testConnect() throws IOException { > this.server.setHttpService(new EchoService()); > // Set default host > this.client.getHostConfiguration().setHost( > this.server.getLocalAddress(), > this.server.getLocalPort(), > Protocol.getProtocol("http")); > > HostConfiguration hConf = new HostConfiguration(); > hConf.setHost( > this.server.getLocalAddress(), > this.server.getLocalPort()); > ConnectMethod conn = new ConnectMethod(hConf); > try { > this.client.executeMethod(conn); > assertEquals(HttpStatus.SC_OK, conn.getStatusCode()); > } finally { > conn.releaseConnection(); > } > } ... > > So my question is whether this is a bug or operator error? Thanks in advance, > Mike, What is it exactly you are trying to achieve? CONNECT method is supposed to be used for one thing and one thing only: to establish a tunnel through an HTTP proxy server. Why are you trying to execute this method as an ordinary HTTP request? Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Sat Jul 05 19:57:25 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 32961 invoked from network); 5 Jul 2008 19:57:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jul 2008 19:57:24 -0000 Received: (qmail 75987 invoked by uid 500); 5 Jul 2008 19:57:25 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 75968 invoked by uid 500); 5 Jul 2008 19:57:25 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 75957 invoked by uid 99); 5 Jul 2008 19:57:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 12:57:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vanessapratt@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 19:56:33 +0000 Received: by nf-out-0910.google.com with SMTP id h3so462011nfh.48 for <vanessapratt@example.net>; Sat, 05 Jul 2008 12:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=XjBFqfj0SOk80YzR+nyH5kHOhX846q5Oou1/aTLF1n0=; b=WUWGMIkPnwCkTuNFJR9RuPwrK3zI/+xJ1V4N2+SUQNVyZTU6M2feC3zPF8lztbwp/u lO6Q5rEUEg+NFQ5WzIUdT0YIrw9ds/kNUjzM7w2rKqJVn+wXTBHdG03xqSV/VbN2g+DZ w9uuXz79rEc4/KEAEQvtrQ3mj3f8MZFgwkdJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=F8SoYyy19BZHKZa3xFV+JcvCN1c6Te+ScUTP3zd8S+4dlkoXzGrwGJ5QvTQTCzSKUn XPKmHnl6PblJReVygTZyf2cbvuQmY/IMH3SQbaDGsYaeh67H60AoQ8gmpeb+Oak/TklY LJ3iy185P4JkEBh/iUs0VkDklUkYqnKAYMYfA= Received: by 83.161.120.155 with SMTP id n10mr1512720ebn.116.1215287813137; Sat, 05 Jul 2008 12:56:53 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Sat, 5 Jul 2008 12:56:53 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Sat, 5 Jul 2008 12:56:53 -0700 From: "Mike Cumings" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> Subject: Re: ConnectMethod usage In-Reply-To: <1215259320.17374.2.camel@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <vanessapratt@example.net> <1215259320.17374.2.camel@ubuntu> X-Virus-Checked: Checked by ClamAV on apache.org Hi Oleg, I'm well ware of what HTTP CONNECT is used for and how it works. When I added the explicit protocol selection in the snippet of code previously sent out, I was just checking to see if the scheme would e inherited from the host configuration. I had meant to cut that code out prior to sending out my email but it looks like I had forgotten do do that.. I'm just trying to get an HTTP CONNECT to work through an upstream proxy to a site passed to my code in the form of a hostname and port authority specification. It seems like it's getting tripped up in httpclient when the authority specification is being parsed/interpreted as a URI. Thanks in advance, Mike On Sat, Jul 5, 2008 at 5:02 AM, Oleg Kalnichevski <vanessapratt@example.net> wrote: > On Thu, 2008-07-03 at 15:12 -0700, Mike Cumings wrote: >> Hello all, >> >> I've got a question as to the usage of the ConnectMethod. From the API, >> it appears that the only non-deprecated way to create a HTTP CONNECT >> connection is to construct a ConnectMethod instance, passing in a >> HostConfiguration object configured for the target/destination host and port. >> I've modelled this in the test case below: >> >> public void testConnect() throws IOException { >> this.server.setHttpService(new EchoService()); >> // Set default host >> this.client.getHostConfiguration().setHost( >> this.server.getLocalAddress(), >> this.server.getLocalPort(), >> Protocol.getProtocol("http")); >> >> HostConfiguration hConf = new HostConfiguration(); >> hConf.setHost( >> this.server.getLocalAddress(), >> this.server.getLocalPort()); >> ConnectMethod conn = new ConnectMethod(hConf); >> try { >> this.client.executeMethod(conn); >> assertEquals(HttpStatus.SC_OK, conn.getStatusCode()); >> } finally { >> conn.releaseConnection(); >> } >> } > ... >> >> So my question is whether this is a bug or operator error? Thanks in advance, >> > > Mike, > > What is it exactly you are trying to achieve? CONNECT method is > supposed to be used for one thing and one thing only: to establish a > tunnel through an HTTP proxy server. Why are you trying to execute this > method as an ordinary HTTP request? > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: vanessapratt@example.net > For additional commands, e-mail: vanessapratt@example.net > > -- Mike Cumings --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Sat Jul 05 23:14:51 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 89129 invoked from network); 5 Jul 2008 23:14:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Jul 2008 23:14:51 -0000 Received: (qmail 64289 invoked by uid 500); 5 Jul 2008 23:14:51 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 64262 invoked by uid 500); 5 Jul 2008 23:14:51 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 64251 invoked by uid 99); 5 Jul 2008 23:14:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 16:14:51 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ok2consulting.nine.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2008 23:13:59 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 39474198003; Sun, 6 Jul 2008 01:14:18 +0200 (CEST) Received: from [83.161.120.155] 548.727.7156.dclient.hispeed.ch [83.161.120.155]) by ok2consulting.nine.ch (Postfix) with ESMTP id 6D7A8198001 for <vanessapratt@example.net>; Sun, 6 Jul 2008 01:14:16 +0200 (CEST) Subject: Re: ConnectMethod usage From: Oleg Kalnichevski <vanessapratt@example.net> To: HttpClient User Discussion <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> References: <vanessapratt@example.net> <1215259320.17374.2.camel@ubuntu> <vanessapratt@example.net> Content-Type: text/plain Date: Sun, 06 Jul 2008 01:14:10 +0200 Message-Id: <1215299650.25092.1.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Sat, 2008-07-05 at 12:56 -0700, Mike Cumings wrote: > Hi Oleg, > > I'm well ware of what HTTP CONNECT is used for and how it works. When I added > the explicit protocol selection in the snippet of code previously sent > out, I was > just checking to see if the scheme would e inherited from the host > configuration. > I had meant to cut that code out prior to sending out my email but it > looks like I > had forgotten do do that.. > > I'm just trying to get an HTTP CONNECT to work through an upstream proxy > to a site passed to my code in the form of a hostname and port authority > specification. It seems like it's getting tripped up in httpclient > when the authority > specification is being parsed/interpreted as a URI. > > Thanks in advance, > > Mike > Mike, Why don't you just use ProxyClient for that? http://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/src/examples/ProxyTunnelDemo.java Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Sun Jul 06 21:00:50 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 30872 invoked from network); 6 Jul 2008 21:00:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Jul 2008 21:00:49 -0000 Received: (qmail 47579 invoked by uid 500); 6 Jul 2008 21:00:49 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 47550 invoked by uid 500); 6 Jul 2008 21:00:49 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 47539 invoked by uid 99); 6 Jul 2008 21:00:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 14:00:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vanessapratt@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 20:59:57 +0000 Received: by nf-out-0910.google.com with SMTP id h3so539293nfh.48 for <vanessapratt@example.net>; Sun, 06 Jul 2008 14:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=7kPin3aSm4YKdI5l4ORZuipwTNDUEXVFc3LAt7dA4HU=; b=eQ1vGM+vcqLnwgeT7bbD8k0dNZ9KmRRfjXlx+ayT7oJNShIGvKlxVVR6EPJwzmMtjh ShIGn2j15mGtN18s7xs7pQPRiumQR8OspiMnECjjNRpIT6WNUH2XRj6p20iHIEZ/LkyE DOTCbQUEvKL1AMCVfETA/M79M7OmKvTQD1CuE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MtbzIzVrtbzIjrppiXJlD/zp9DlSQTBvIP7NTWJWrxnNEowwy6GrqlK07GaCZpreVR MNtPmshD+meJC0Jsn9aIVHpTJEMRiTAePSe1P2BswsiYJhTPN7G1rWKBl2kLhUFRumgQ KSzK9agwWURah0K9TUMHR1u4+mCcU3ZI6DBYY= Received: by 83.161.120.155 with SMTP id h5mr2465783ebh.84.1215378017967; Sun, 06 Jul 2008 14:00:17 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Sun, 6 Jul 2008 14:00:17 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Sun, 6 Jul 2008 14:00:17 -0700 From: "Mike Cumings" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> Subject: Re: ConnectMethod usage In-Reply-To: <1215299650.25092.1.camel@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <vanessapratt@example.net> <1215259320.17374.2.camel@ubuntu> <vanessapratt@example.net> <1215299650.25092.1.camel@ubuntu> X-Virus-Checked: Checked by ClamAV on apache.org Oleg, Perhaps my last response was a bit misleading. I'm not dealing exclusively with HTTP CONNECTs. This is a special purpose proxy which must handle multiple HTTP methods. I could use ProxyClient as a special case within the codebase but would prefer to be able to leverage HttpClient.executeMethod(...) to eliminate special handling in the code. The API suggests that this is possible since executeMethod(...) takes an HttpMethod argument, of which ConnectMethod is an extension. Is this a bad assumption? If not, what in my code needs to change to be able to successfully establish an HTTP CONNECT using ConnectMethod via HttpClient? Thanks again for the assistance, Mike On Sat, Jul 5, 2008 at 4:14 PM, Oleg Kalnichevski <vanessapratt@example.net> wrote: > On Sat, 2008-07-05 at 12:56 -0700, Mike Cumings wrote: >> Hi Oleg, >> >> I'm well ware of what HTTP CONNECT is used for and how it works. When I added >> the explicit protocol selection in the snippet of code previously sent >> out, I was >> just checking to see if the scheme would e inherited from the host >> configuration. >> I had meant to cut that code out prior to sending out my email but it >> looks like I >> had forgotten do do that.. >> >> I'm just trying to get an HTTP CONNECT to work through an upstream proxy >> to a site passed to my code in the form of a hostname and port authority >> specification. It seems like it's getting tripped up in httpclient >> when the authority >> specification is being parsed/interpreted as a URI. >> >> Thanks in advance, >> >> Mike >> > > Mike, > > Why don't you just use ProxyClient for that? > > http://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/src/examples/ProxyTunnelDemo.java > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: vanessapratt@example.net > For additional commands, e-mail: vanessapratt@example.net > > -- Mike Cumings --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Sun Jul 06 22:43:04 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 56337 invoked from network); 6 Jul 2008 22:43:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Jul 2008 22:43:02 -0000 Received: (qmail 80507 invoked by uid 500); 6 Jul 2008 22:43:02 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 80488 invoked by uid 500); 6 Jul 2008 22:43:02 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 80477 invoked by uid 99); 6 Jul 2008 22:43:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 15:43:02 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ok2consulting.nine.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 22:42:10 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 2E4551984E4; Mon, 7 Jul 2008 00:41:59 +0200 (CEST) Received: from [83.161.120.155] 548.727.7156.dclient.hispeed.ch [83.161.120.155]) by ok2consulting.nine.ch (Postfix) with ESMTP id B2E081984E2 for <vanessapratt@example.net>; Mon, 7 Jul 2008 00:41:57 +0200 (CEST) Subject: Re: ConnectMethod usage From: Oleg Kalnichevski <vanessapratt@example.net> To: HttpClient User Discussion <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> References: <vanessapratt@example.net> <1215259320.17374.2.camel@ubuntu> <vanessapratt@example.net> <1215299650.25092.1.camel@ubuntu> <vanessapratt@example.net> Content-Type: text/plain Date: Mon, 07 Jul 2008 00:41:54 +0200 Message-Id: <1215384114.6128.6.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Sun, 2008-07-06 at 14:00 -0700, Mike Cumings wrote: > Oleg, > > Perhaps my last response was a bit misleading. I'm not dealing exclusively with > HTTP CONNECTs. This is a special purpose proxy which must handle multiple > HTTP methods. I could use ProxyClient as a special case within the codebase > but would prefer to be able to leverage HttpClient.executeMethod(...) > to eliminate > special handling in the code. The API suggests that this is possible since > executeMethod(...) takes an HttpMethod argument, of which ConnectMethod > is an extension. Is this a bad assumption? If not, what in my code needs to > change to be able to successfully establish an HTTP CONNECT using > ConnectMethod via HttpClient? Thanks again for the assistance, > Mike, I do not think this can be done with HttpClient 3.1. HTTP CONNECT method has a different semantic than all other methods. You should consider building a custom HTTP client using components of HttpClient 4.0. The 4.0 API is significantly more modular and flexible than its predecessor. Oleg > Mike > > On Sat, Jul 5, 2008 at 4:14 PM, Oleg Kalnichevski <vanessapratt@example.net> wrote: > > On Sat, 2008-07-05 at 12:56 -0700, Mike Cumings wrote: > >> Hi Oleg, > >> > >> I'm well ware of what HTTP CONNECT is used for and how it works. When I added > >> the explicit protocol selection in the snippet of code previously sent > >> out, I was > >> just checking to see if the scheme would e inherited from the host > >> configuration. > >> I had meant to cut that code out prior to sending out my email but it > >> looks like I > >> had forgotten do do that.. > >> > >> I'm just trying to get an HTTP CONNECT to work through an upstream proxy > >> to a site passed to my code in the form of a hostname and port authority > >> specification. It seems like it's getting tripped up in httpclient > >> when the authority > >> specification is being parsed/interpreted as a URI. > >> > >> Thanks in advance, > >> > >> Mike > >> > > > > Mike, > > > > Why don't you just use ProxyClient for that? > > > > http://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/src/examples/ProxyTunnelDemo.java > > > > Oleg > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: vanessapratt@example.net > > For additional commands, e-mail: vanessapratt@example.net > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Mon Jul 07 23:02:08 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 2575 invoked from network); 7 Jul 2008 23:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Jul 2008 23:02:08 -0000 Received: (qmail 78303 invoked by uid 500); 7 Jul 2008 23:02:08 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 78267 invoked by uid 500); 7 Jul 2008 23:02:08 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 78256 invoked by uid 99); 7 Jul 2008 23:02:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2008 16:02:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web50109.mail.re2.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 07 Jul 2008 23:01:16 +0000 Received: (qmail 3235 invoked by uid 60001); 7 Jul 2008 23:01:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=c6VB2+CDKCPeYZwgBJoSNvyk4CpOnZndBpm6Rn1pUAlV3VB2YI9BMVNJ0BB3SYyV9mAxvE82AVwF9j5C/3a8mnb7CvW+/f+6zDjjmP1hGLdC9cNaCFqF+yJxvXx69/ZaDzo6cyeSMAFnxRQ/sQnztE/NNX2QtTiTpaCbaEWrABo=; Received: from [83.161.120.155] by web50109.mail.re2.yahoo.com via HTTP; Mon, 07 Jul 2008 16:01:37 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Mon, 7 Jul 2008 16:01:37 -0700 (PDT) From: Will McQueen <vanessapratt@example.net> Reply-To: vanessapratt@example.net Subject: capture exact Http request for wire trace To: vanessapratt@example.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <vanessapratt@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I use commons-httpclient-3.1 to make Web API calls. For debugging purposes, I need to know exactly the entire HTTP request message that was sent from my program to the server (ie, wiretrace). How can I do this with httpclient? At first I thought there might be a toString() method in the HttpMethodBase class that I could call after constructing my request, but that doesn't seem to be the case. I was considering using something like Wireshark, Fiddler, Charles, or Burp, but I'd rather do it with httpclient if I can. Using a proxy would modify some of the headers, I think? Thank you. Cheers, Will --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Tue Jul 08 15:53:05 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 69570 invoked from network); 8 Jul 2008 15:53:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Jul 2008 15:53:05 -0000 Received: (qmail 71011 invoked by uid 500); 8 Jul 2008 15:53:05 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 70972 invoked by uid 500); 8 Jul 2008 15:53:04 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 70961 invoked by uid 99); 8 Jul 2008 15:53:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 08:53:04 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO tux.ds.adp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 15:52:11 +0000 Received: from CHEMO.hoffman.ds.adp.com (chemo [83.161.120.155]) by tux.ds.adp.com (83.161.120.15560308/8.12.11) with SMTP id m68FqVYI016462 for <vanessapratt@example.net>; Tue, 8 Jul 2008 10:52:31 -0500 Received: from (83.161.120.155) by CHEMO.hoffman.ds.adp.com via smtp id 073b_e1bed832_4d05_11dd_9cad_001143361a0d; Tue, 08 Jul 2008 10:52:34 -0500 X-MIMEOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: capture exact Http request for wire trace Date: Tue, 8 Jul 2008 10:52:30 -0500 Message-ID: <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: capture exact Http request for wire trace thread-index: AcjghYhLUrlm8kNiQeCui5k28yzqggAjPncg References: <vanessapratt@example.net> From: "Moore, Greg" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1 X-Virus-Checked: Checked by ClamAV on apache.org Take a look at http://hc.apache.org/httpclient-3.x/logging.html or http://hc.apache.org/httpclient-3.x/troubleshooting.html=20 Greg. -----Original Message----- From: Will McQueen [mailto:vanessapratt@example.net]=20 Sent: Monday, July 07, 2008 4:02 PM To: vanessapratt@example.net Subject: capture exact Http request for wire trace Hi, I use commons-httpclient-3.1 to make Web API calls. For debugging purposes, I need to know exactly the entire HTTP request message that was sent from my program to the server (ie, wiretrace). How can I do this with httpclient? At first I thought there might be a toString() method in the HttpMethodBase class that I could call after constructing my request, but that doesn't seem to be the case. I was considering using something like Wireshark, Fiddler, Charles, or Burp, but I'd rather do it with httpclient if I can. Using a proxy would modify some of the headers, I think? Thank you. Cheers, Will =20 --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net This message and any attachments are intended only for the use of the add= ressee and may contain information that is privileged and confidential. I= f the reader of the message is not the intended recipient or an authorize= d representative of the intended recipient, you are hereby notified that = any dissemination of this communication is strictly prohibited. If you ha= ve received this communication in error, please notify us immediately by = e-mail and delete the message and any attachments from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Wed Jul 09 18:52:21 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 6852 invoked from network); 9 Jul 2008 18:52:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Jul 2008 18:52:21 -0000 Received: (qmail 99172 invoked by uid 500); 9 Jul 2008 18:52:20 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 99143 invoked by uid 500); 9 Jul 2008 18:52:20 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 99132 invoked by uid 99); 9 Jul 2008 18:52:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 11:52:20 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of vanessapratt@example.net does not designate 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO qb-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 18:51:29 +0000 Received: by qb-out-0506.google.com with SMTP id c7so4491086qbc.9 for <vanessapratt@example.net>; Wed, 09 Jul 2008 11:51:42 -0700 (PDT) Received: by 83.161.120.155 with SMTP id g12mr4149583mur.6.1215629500915; Wed, 09 Jul 2008 11:51:40 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Wed, 9 Jul 2008 11:51:40 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Wed, 9 Jul 2008 11:51:40 -0700 From: "Alexis Midon" <vanessapratt@example.net> To: vanessapratt@example.net Subject: Content-Encoding management MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23713_6041730.1215629500919" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_23713_6041730.1215629500919 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I'd like to know how Httpclient 3.* deals with compressed content in a way or another. for instance may I expect compressed response bodies to be uncompressed transparently and exposed in their Content-Type? Thanks in adavance, Alexis ------=_Part_23713_6041730.1215629500919-- From httpclient-usersvanessapratt@example.net Wed Jul 09 21:38:34 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 75795 invoked from network); 9 Jul 2008 21:38:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Jul 2008 21:38:34 -0000 Received: (qmail 98533 invoked by uid 500); 9 Jul 2008 21:38:34 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 98506 invoked by uid 500); 9 Jul 2008 21:38:34 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 98495 invoked by uid 99); 9 Jul 2008 21:38:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 14:38:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx3.progress.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 21:37:41 +0000 Received: from mx3.progress.com (83.161.120.155) by mx3.progress.com (MlfMTA v3.2r9) id heknt00171sq for <vanessapratt@example.net>; Wed, 9 Jul 2008 17:38:04 -0400 (envelope-from <vanessapratt@example.net>) Received: from progress.com ([83.161.120.155]) by mx3.progress.com (SonicWALL 83.161.120.15557) with ESMTP; Wed, 09 Jul 2008 17:38:03 -0400 Received: from NTEXFE02.bedford.progress.com (ntexfe02 [83.161.120.155]) by progress.com (8.13.8/8.13.8) with ESMTP id m69Lc33u021986 for <vanessapratt@example.net>; Wed, 9 Jul 2008 17:38:03 -0400 (EDT) Received: from MAIL03.bedford.progress.com ([83.161.120.155]) by NTEXFE02.bedford.progress.com with Microsoft SMTPSVC548.727.7156); Wed, 9 Jul 2008 17:38:03 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Uploading a file using PostMethod sends a truncated request... Date: Wed, 9 Jul 2008 17:38:00 -0400 Message-ID: <vanessapratt@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Uploading a file using PostMethod sends a truncated request... Thread-Index: Acjh9OyABOxdrJp2SH2LkcBSUuvZ7AAAH3eAAAVOEtAAACZzoAAAIxpQ References: <vanessapratt@example.net> From: "Guillaume Cauchon" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> X-OriginalArrivalTime: 09 Jul 2008 21:38:03.0651 (UTC) FILETIME=[11394530:01C8E20C] X-Mlf-Version: 83.161.120.15557 X-Mlf-UniqueId: o200807092138030231703 X-Virus-Checked: Checked by ClamAV on apache.org I'm using the HttpClient 3.1 to upload my Axis2 archives from my client application to the Axis2 webapp (using the default same URL as the one used by the JSP pages) and it keeps failing in a way I can explain... If I use the webapp's upload jsp page the POST request works correctly and my archive gets transferred without issues! However using HttpClient in my client application even if I get a HTTP/1.0 200, the file doesn't gets transferred at all as it seams the POST request is truncated (from looking at the post boundaries that are missing. The funny thiongs it's is semas to be size related as it's is working for realy small files from my client app... I opened A JIRA as I wasn't able to send an email to the mailing list and I though it wasn't available anymore... https://issues.apache.org/jira/browse/HTTPCLIENT-785 ________________________________ Guillaume Cauchon | DataDirect Technologies inc. =20 -email: vanessapratt@example.net =20 -mobile: 548.727.7156 =20 -work: 548.727.7156 =20 -----Original Message----- From: Alexis Midon [mailto:vanessapratt@example.net]=20 Sent: Wednesday, July 09, 2008 2:52 PM To: vanessapratt@example.net Subject: Content-Encoding management Hi all, I'd like to know how Httpclient 3.* deals with compressed content in a way or another. for instance may I expect compressed response bodies to be uncompressed transparently and exposed in their Content-Type? Thanks in adavance, Alexis --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Wed Jul 09 22:16:55 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 94885 invoked from network); 9 Jul 2008 22:16:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Jul 2008 22:16:55 -0000 Received: (qmail 31292 invoked by uid 500); 9 Jul 2008 22:16:55 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 30999 invoked by uid 500); 9 Jul 2008 22:16:55 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 30988 invoked by uid 99); 9 Jul 2008 22:16:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 15:16:55 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ok2consulting.nine.ch) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 22:16:02 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id E589C1984FC; Thu, 10 Jul 2008 00:15:50 +0200 (CEST) Received: from [83.161.120.155] 548.727.7156.dclient.hispeed.ch [83.161.120.155]) by ok2consulting.nine.ch (Postfix) with ESMTP id EBEEA1984FA for <vanessapratt@example.net>; Thu, 10 Jul 2008 00:15:49 +0200 (CEST) Subject: Re: Content-Encoding management From: Oleg Kalnichevski <vanessapratt@example.net> To: HttpClient User Discussion <vanessapratt@example.net> In-Reply-To: <vanessapratt@example.net> References: <vanessapratt@example.net> Content-Type: text/plain; charset=utf-8 Date: Thu, 10 Jul 2008 00:15:44 +0200 Message-Id: <1215641744.6133.1.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham version=3.0.3 On Wed, 2008-07-09 at 11:51 -0700, Alexis Midon wrote: > Hi all, > > I'd like to know how Httpclient 3.* deals with compressed content in a way > or another. No, it does not > for instance may I expect compressed response bodies to be uncompressed > transparently and exposed in their Content-Type? > No, you can't. Oleg > Thanks in adavance, > > Alexis --------------------------------------------------------------------- To unsubscribe, e-mail: vanessapratt@example.net For additional commands, e-mail: vanessapratt@example.net From httpclient-usersvanessapratt@example.net Wed Jul 09 22:18:42 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 95294 invoked from network); 9 Jul 2008 22:18:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Jul 2008 22:18:42 -0000 Received: (qmail 31935 invoked by uid 500); 9 Jul 2008 22:18:42 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 31910 invoked by uid 500); 9 Jul 2008 22:18:42 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post: <mailto:vanessapratt@example.net> List-Id: <httpclient-users.hc.apache.org> Reply-To: "HttpClient User Discussion" <vanessapratt@example.net> Delivered-To: mailing list vanessapratt@example.net Received: (qmail 31897 invoked by uid 99); 9 Jul 2008 22:18:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 15:18:42 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of vanessapratt@example.net does not designate 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO qb-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 22:17:50 +0000 Received: by qb-out-1314.google.com with SMTP id e15so6333720qbe.10 for <vanessapratt@example.net>; Wed, 09 Jul 2008 15:18:11 -0700 (PDT) Received: by 83.161.120.155 with SMTP id s5mr4274617mur.62.1215641890072; Wed, 09 Jul 2008 15:18:10 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Wed, 9 Jul 2008 15:18:10 -0700 (PDT) Message-ID: <vanessapratt@example.net> Date: Wed, 9 Jul 2008 15:18:10 -0700 From: "Alexis Midon" <vanessapratt@example.net> To: "HttpClient User Discussion" <vanessapratt@example.net> Subject: Re: Content-Encoding management In-Reply-To: <1215641744.6133.1.camel@ubuntu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_378_33129614.1215641890075" References: <vanessapratt@example.net> <1215641744.6133.1.camel@ubuntu> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_378_33129614.1215641890075 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline VGhhbmsgeW91IE9sZWcKCk9uIFdlZCwgSnVsIDksIDIwMDggYXQgMzoxNSBQTSwgT2xlZyBLYWxu aWNoZXZza2kgPG9sZWdrQGFwYWNoZS5vcmc+IHdyb3RlOgoKPiBPbiBXZWQsIDIwMDgtMDctMDkg YXQgMTE6NTEgLTA3MDAsIEFsZXhpcyBNaWRvbiB3cm90ZToKPiA+IEhpIGFsbCwKPiA+Cj4gPiBJ J2QgbGlrZSB0byBrbm93IGhvdyBIdHRwY2xpZW50IDMuKiBkZWFscyB3aXRoIGNvbXByZXNzZWQg Y29udGVudCBpbiBhCj4gd2F5Cj4gPiBvciBhbm90aGVyLgo+Cj4gTm8sIGl0IGRvZXMgbm90Cj4K PiA+IGZvciBpbnN0YW5jZSBtYXkgSSBleHBlY3QgY29tcHJlc3NlZCByZXNwb25zZSBib2RpZXMg dG8gYmUgdW5jb21wcmVzc2VkCj4gPiB0cmFuc3BhcmVudGx5IGFuZCBleHBvc2VkIGluIHRoZWly IENvbnRlbnQtVHlwZT8KPiA+Cj4KPiBObywgeW91IGNhbid0Lgo+IO+7vwo+IE9sZWcKPgo+Cj4g PiBUaGFua3MgaW4gYWRhdmFuY2UsCj4gPgo+ID4gQWxleGlzCj4KPgo+IC0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQo+ IFRvIHVuc3Vic2NyaWJlLCBlLW1haWw6IGh0dHBjbGllbnQtdXNlcnMtdW5zdWJzY3JpYmVAaGMu YXBhY2hlLm9yZwo+IEZvciBhZGRpdGlvbmFsIGNvbW1hbmRzLCBlLW1haWw6IGh0dHBjbGllbnQt dXNlcnMtaGVscEBoYy5hcGFjaGUub3JnCj4KPgo= ------=_Part_378_33129614.1215641890075-- From httpclient-usersvanessapratt@example.net Thu Jul 10 12:58:52 2008 Return-Path: <httpclient-usersvanessapratt@example.net> Delivered-To: vanessapratt@example.net Received: (qmail 22444 invoked from network); 10 Jul 2008 12:58:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Jul 2008 12:58:52 -0000 Received: (qmail 21510 invoked by uid 500); 10 Jul 2008 12:58:51 -0000 Delivered-To: vanessapratt@example.net Received: (qmail 21486 invoked by uid 500); 10 Jul 2008 12:58:51 -0000 Mailing-List: contact vanessapratt@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:vanessapratt@example.net> List-Unsubscribe: <mailto:vanessapratt@example.net> List-Post:
{'source': 'Apache Software Foundation Public Mail Archives'}