Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 12639 invoked from network); 28 Apr 2009 14:37:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 14:37:04 -0000 Received: (qmail 88963 invoked by uid 500); 28 Apr 2009 14:37:03 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 88888 invoked by uid 500); 28 Apr 2009 14:37:03 -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 88878 invoked by uid 99); 28 Apr 2009 14:37:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 14:37:03 +0000 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 sebbaz@gmail.com designates 209.85.219.159 as permitted sender) Received: from [209.85.219.159] (HELO mail-ew0-f159.google.com) (209.85.219.159) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 14:36:55 +0000 Received: by ewy3 with SMTP id 3so611057ewy.22 for ; Tue, 28 Apr 2009 07:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=iCKqzZZD39RjU24CJzdc42iVTvd3uHFzPDq07Lz0E9w=; b=Y8TBB62ol4U72LZ/yMg0nMqDZoZE5mahI0neiw7bWiUx1Xey1/QVKUpTQydrwyFin+ tQBFFru95k7FSS1usvmg7MewEmeYTOAW8/qpAQ8f5J1Hm/v47X/Q2X9fZFrJ9wQ/VceQ KkZETi+JaC0VlAVOWBLzJ1BVOO2+TgsvOlb9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lDExFhhwbJ4+hjvbRTY70e+7oiA1LP7yiUr7bv+Hs6fTGfE1GYEZS0oTfT9kI/0Lhf sZ91qdg5lVkhm5OUqV4axPNdFAFjlv7AaadTtKXxYEcXFyoBUvZyKlaEZfQ4uM1UJdCb yW2jwqOxQtlKekFjG1jk6zBWYLYVXRgRSZJ/c= MIME-Version: 1.0 Received: by 10.216.26.70 with SMTP id b48mr866670wea.141.1240929394234; Tue, 28 Apr 2009 07:36:34 -0700 (PDT) In-Reply-To: <23277965.post@talk.nabble.com> References: <23277965.post@talk.nabble.com> Date: Tue, 28 Apr 2009 15:36:34 +0100 Message-ID: <25aac9fc0904280736u40914183ke7aa598f2fc1ea41@mail.gmail.com> Subject: Re: Creating Cookies, set domain From: sebb To: HttpClient User Discussion Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 28/04/2009, RedCarpet wrote: > > I'm using HttpClient 4.0-beta2 > > Problem: > My app needs to be able to create cookies that are used to login on a > website, on the first HTTP request. > > With httpclient-3.x I could easily create a cookie using: > Cookie(String domain, String name, String value, String path, Date expires, > boolean secure) > and then add them to the client using: > httpClient.getState().addCookie(cookie); > > > But HttpClient 4 only has > Cookie(String name, String value) > > How can I set the domain, path etc? Have a look at BasicClientCookie / BasicClientCookie2 > -- > View this message in context: http://www.nabble.com/Creating-Cookies%2C-set-domain-tp23277965p23277965.html > Sent from the HttpClient-User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org