Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31546DF64 for ; Fri, 16 Nov 2012 17:34:27 +0000 (UTC) Received: (qmail 28863 invoked by uid 500); 16 Nov 2012 17:34:27 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 28820 invoked by uid 500); 16 Nov 2012 17:34:27 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 28806 invoked by uid 99); 16 Nov 2012 17:34:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 17:34:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.212.51 as permitted sender) Received: from [209.85.212.51] (HELO mail-vb0-f51.google.com) (209.85.212.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 17:34:19 +0000 Received: by mail-vb0-f51.google.com with SMTP id fn1so2864638vbb.10 for ; Fri, 16 Nov 2012 09:33:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oUQvie5KXZi5tjUGkvtlt+W31CQAQmsJX2PtXQuNiZw=; b=BTJ6pzWgsTlIfkKkiT5M/dKHYzClMclf3g+OQ84TjtC9Eoy2uefVG+n5J1awZkMi6y m/k8uPTBY/SGZKQPfaWj3XY2Jpi/hyLDnYUBzEMuFnkeiyabfsliVER/4FjSmKOE7II2 eRNHXD1V8cV5X2KD1Ca9aMSPYJMhEHvecmRJpNcLcgaKibHTlJzGZZFaU1wkK7a+DihK VHRbh7QmYxLJ3k0ImHOBdibGSY/k5GM6s10xLMPBGBIFZdbBKjrNDCY2/3Xbpr13gJTO LF0ft9jAbmcRESvrHCrpA83iU2JWQb7E0eb0uF3MaXfryvZ+OWghZLfAJHdh55sZYyWE QY7g== MIME-Version: 1.0 Received: by 10.52.90.37 with SMTP id bt5mr4713129vdb.67.1353087238237; Fri, 16 Nov 2012 09:33:58 -0800 (PST) Received: by 10.58.172.71 with HTTP; Fri, 16 Nov 2012 09:33:58 -0800 (PST) In-Reply-To: <1353081301.20463.23.camel@ubuntu> References: <1353081301.20463.23.camel@ubuntu> Date: Fri, 16 Nov 2012 17:33:58 +0000 Message-ID: Subject: Re: Log misleading for User-Agent From: sebb To: HttpComponents Project Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 16 November 2012 15:55, Oleg Kalnichevski wrote: > On Fri, 2012-11-16 at 06:38 -0500, Jon Moore wrote: >> Yes, I'd be in favor of either one of these changes (removing or >> reporting dynamically the right version). I'd probably lean towards >> removing it if pressed to express an opinion. >> >> As I recall (although I don't have the code in front of me), the >> CachingHttpClient sends a slightly different User-Agent, mentioning >> the fact that the cache is present in the stack in the comment field. >> I think this made sense originally, when it was really an add-on >> module. However, since Oleg is re-wiring the "stack" for the default >> client in 4.3, that may not be needed any more. >> >> It could just be that I'm remembering the comment in the Via header >> the caching layer adds, though; in which case the caching client >> wouldn't modify the User-Agent. >> >> Jon >> >> On Thu, Nov 15, 2012 at 9:00 PM, Gary Gregory wrote: >> > Hi All: >> > >> > At the debug logging level I see: >> > >> > User-Agent: Apache-HttpClient/4.2.1 (java 1.5) >> > >> > But I am running on Java 6... so, Why is 1.5 hard coded? >> > >> > Could/Should we remove "(java 1.5)" or have it report the correct version? >> > >> > Thoughts? >> > >> > Gary >> > > > If my memory serves me well the original intention was to include a > minimal JRE version a particular release is compatible with. > > I am fine with either dropping it or replacing with a dynamically > generated JRE version requests are generated with. Or replace with: User-Agent: Apache-HttpClient/4.2.1 (Java 1.5+) if we want to keep the original meaning (but clarify it). Do other user agents include OS/Java details in their UA strings? > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org