Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C85518974 for ; Wed, 16 Dec 2015 20:40:30 +0000 (UTC) Received: (qmail 425 invoked by uid 500); 16 Dec 2015 20:40:25 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 375 invoked by uid 500); 16 Dec 2015 20:40:25 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 355 invoked by uid 99); 16 Dec 2015 20:40:25 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2015 20:40:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 84E45C4A6C for ; Wed, 16 Dec 2015 20:40:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id S6CzSIYwM3ZC for ; Wed, 16 Dec 2015 20:40:13 +0000 (UTC) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id B8AA742A70 for ; Wed, 16 Dec 2015 20:40:12 +0000 (UTC) Received: by mail-ig0-f182.google.com with SMTP id to4so83038118igc.0 for ; Wed, 16 Dec 2015 12:40:12 -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 :cc:content-type; bh=oXg5lMp7Ym/QRmSnZIuQ9U15AGSQYUN3kuH8tXD5wcQ=; b=QmfDbtcSQakR4BNRLjmKV+GZegkl6fg/GFH8E+xt35UayAx9PMkwt1D8g5Q0uPiYDe FKl6ZQbioSpv5rgbgqVX769Sxy/StbckXFHxX+IBv5M9e0CA6RvAOvw8GC463Z+uD34O db3K2TTrLkb0Kxwrod1V56g+GngHw3+wMkAedyRWueNWDJ1mgPcoEWhuuxOIw4ZqpTOb 3ccAqDr3uDqO96OgHKRA4VHPjZFnsX+L6jn7wO/VuWoH1rfVwtQSEW2PnoPOFiPMkyVP sVHW1RbP173LPj5uOCB2DISJCR7T3Uk53+l6U1vnarIAhYbC8TY4+1DqqCu5GgyiJKou sh3A== MIME-Version: 1.0 X-Received: by 10.50.18.44 with SMTP id t12mr12349026igd.12.1450298412412; Wed, 16 Dec 2015 12:40:12 -0800 (PST) Received: by 10.107.51.5 with HTTP; Wed, 16 Dec 2015 12:40:12 -0800 (PST) In-Reply-To: References: <1450298052.21584.1.camel@apache.org> Date: Wed, 16 Dec 2015 21:40:12 +0100 Message-ID: Subject: Re: Domain value returns by getDomain() From: Philippe Mouawad To: "dev@jmeter.apache.org" Cc: HttpClient User Discussion Content-Type: multipart/alternative; boundary=089e014946aeb0b595052709e9d3 --089e014946aeb0b595052709e9d3 Content-Type: text/plain; charset=UTF-8 So If we want to know if Domain cookie was set, can we test with this: ((BasicClientCookie)cookie).containsAttribute(ClientCookie.DOMAIN_ATTR) As we need a way to distinguish a cookie with ".bt.com" vs "bt.com" so that if next request is for a subdomain we send the cookie. Thanks On Wed, Dec 16, 2015 at 9:38 PM, Philippe Mouawad < philippe.mouawad@gmail.com> wrote: > Thanks ! > > On Wed, Dec 16, 2015 at 9:34 PM, Oleg Kalnichevski > wrote: > >> On Tue, 2015-12-15 at 21:40 +0100, Philippe Mouawad wrote: >> > Hello, >> > I would like to know if it's a bug or regular. >> > >> > In the below Test case, we have a cookie which domain attribute is >> "domain=. >> > bt.com" >> > But the built cookie by HttpClient return "bt.com" , it's explicitely >> in >> > the code of BasicDomainHandler#domainMatch. >> > >> > I suppose it's voluntary right ? >> > >> >> Please see >> >> http://tools.ietf.org/html/rfc6265#section-5.2.3 >> >> Oleg >> >> > > > -- > Cordialement. > Philippe Mouawad. > > > -- Cordialement. Philippe Mouawad. --089e014946aeb0b595052709e9d3--