Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 1850 invoked from network); 25 Oct 2009 13:15:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Oct 2009 13:15:50 -0000 Received: (qmail 38345 invoked by uid 500); 25 Oct 2009 13:15:49 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 38262 invoked by uid 500); 25 Oct 2009 13:15:48 -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 38252 invoked by uid 99); 25 Oct 2009 13:15:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 13:15:48 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 13:15:39 +0000 Received: from [192.168.1.106] (77-58-152-190.dclient.hispeed.ch [77.58.152.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ok2cons2.nine.ch (Postfix) with ESMTPSA id 0B9A44BA385 for ; Sun, 25 Oct 2009 14:15:19 +0100 (CET) Message-ID: <4AE44F5F.9080604@apache.org> Date: Sun, 25 Oct 2009 14:15:11 +0100 From: Oleg Kalnichevski User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: does not seem to be getting all the cookie References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Randy Paries wrote: > Hello, > in my client i am going to a page and then doing the following?: > > Cookie[] cookies = client.getState().getCookies(); > System.out.println("Present cookies: "); > for (int i = 0; i < cookies.length; i++) { > System.out.println(" - " + cookies[i].toExternalForm()); > } > > All i get in the print out is > - session=8b45p8i4b0uk899iggk1kvht35 > > yet via firebug or fiddler when i go to this page via a browser > i see these > Cookie AWSUSER_ID=awsuser_id1256241083831r6937; > AWSSESSION_ID=awssession_id1256241083831r6937; > __utma=235052179.1675139821.1256241084.1256241084.1256242294.2; > __utmb=235052179.5.10.1256242294; > __utmz=235052179.1256241084.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) > > Any suggestions on what i am doing wrong?? > > thanks > Randy > Randy, Most likely other cookies got rejected as invalid due to the selected cookie policy. For details see: http://hc.apache.org/httpclient-3.x/cookies.html Oleg PS: Also, consider upgrading to HttpClient 4.0, which can pick a more lenient cookie policy automatically based on properties of the SetCookie response headers. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org