Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 44176 invoked from network); 15 Aug 2007 21:59:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Aug 2007 21:59:54 -0000 Received: (qmail 59170 invoked by uid 500); 15 Aug 2007 21:59:51 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 59130 invoked by uid 500); 15 Aug 2007 21:59:51 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 59110 invoked by uid 99); 15 Aug 2007 21:59:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 14:59:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 22:00:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 740E871418F for ; Wed, 15 Aug 2007 14:59:30 -0700 (PDT) Message-ID: <21861587.1187215170453.JavaMail.jira@brutus> Date: Wed, 15 Aug 2007 14:59:30 -0700 (PDT) From: "Vladimir (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Created: (HTTPCLIENT-685) Problem using CookiePolicy.NETSCAPE policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Problem using CookiePolicy.NETSCAPE policy ------------------------------------------- Key: HTTPCLIENT-685 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-685 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpCookie Affects Versions: 3.0.1 Reporter: Vladimir Priority: Minor Cookies are not sent correctly by httpclient. Here is a code snippet: --------- PostMethod postMethod = new PostMethod("http://someurl"); postMethod.setParameter("email", "vslaykovsky@gmail.com"); postMethod.setParameter("pass", "somepassword"); HttpClient client = new HttpClient(); client.getParams().setCookiePolicy(CookiePolicy.NETSCAPE); client.executeMethod(postMethod); String getarg = "http://someurl" + postMethod.getResponseHeader("Location").getValue(); GetMethod get = new GetMethod(getarg); get.setFollowRedirects(true); client.executeMethod(get); ------ After executing postMethod several cookies are injected in httpclient. After that get method must use those cookies and NETSCAPE policy, but using sniffer I see, that all cookies are separated in different lines instead of one line. For example: Needed: Cookie: first=value; second=second_value Actual: Cookie: first=value Cookie: second=second_value ------ Only while writing this story, I've realized, that I'm using HttpClient 3.0.1, so this bug is probably already fixed. Sorry :) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org