Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 45316 invoked from network); 26 Dec 2006 03:06:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Dec 2006 03:06:17 -0000 Received: (qmail 39798 invoked by uid 500); 26 Dec 2006 03:06:22 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 39678 invoked by uid 500); 26 Dec 2006 03:06:20 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 39458 invoked by uid 99); 26 Dec 2006 03:06:18 -0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,NO_REAL_NAME,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [70.168.83.81] (HELO centrmmtao03.cox.net) (70.168.83.81) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Dec 2006 19:06:14 -0800 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by centrmmtao03.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061226030405.CYWK13993.centrmmtao03.cox.net@eastrmimpo02.cox.net>; Mon, 25 Dec 2006 22:04:05 -0500 Received: from eastrmwml07.mgt.cox.net ([172.18.52.66]) by eastrmimpo02.cox.net with bizsmtp id 3F2o1W00P1RiAF80000000; Mon, 25 Dec 2006 22:02:48 -0500 Received: from 70.187.195.82 by webmail.east.cox.net; Mon, 25 Dec 2006 22:04:05 -0500 Message-ID: <29650002.1167102245615.JavaMail.root@eastrmwml07.mgt.cox.net> Date: Tue, 26 Dec 2006 3:04:05 +0000 From: To: HttpClient User Discussion Subject: Re: How to set http.protocol.single-cookie-header parameter non-programmatically Cc: Oleg Kalnichevski MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Virus-Checked: Checked by ClamAV on apache.org > Jim, I am terribly sorry for having misled you. I just realized this > approach would not work with HttpClient 3.x. I am stuck too deeply in > the HttpClient 4.0 code. The only option to change the way 'Cookie' > headers are generated in HttpClient 3.x is by subclassing HttpMethodBase > and overriding #addCookieRequestHeader method [1], which is of little > help in your situation. HttpClient 4.0 will have a more flexible cookie > API but as far as HttpClient 3.x is concerned I can't think of any > workaround. > > Sorry. Oleg, Thanks for getting back. Hopefully this will not be a problem, but at least now I know that there's nothing that I can do from my end. Now that I do know that, I'm going to have to work this problem from a couple different angles. I'm working with two different COTS products, and the first problem was that the applet from one vendor was sending the multiple "Cookie:" headers per HTTP request. The requests from the applet go to an Apache webserver (proxy), and Apache is combining the two "Cookie:" headers into a single "Cookie:" header, but it is putting a comma (",") between the cookie strings from the original two "Cookie:" headers. >From my research, it seems that there's been a bit of debate about comma vs. semi-colon when combining "Cookie:" headers, but, in any event, the combined "Cookie:" header with the comma is causing another, second COTS product a problem, because when they try to extract "their" cookie string from the combined header, the ending comma is causing this latter product to thrown an exception when it tries to Base64-decode the extracted cookie string. So, I'm going to have to try to get either the 1st vendor to change their applet code to set the http.protocol.single-cookie-header to true, or get the 2nd vendor to modify their code to accept either a semi-colon or comma as the cookie separator. The "joys of integration" :)!!! Question: Obviously, I actually haven't been able try the 'http.protocol.single-cookie-header=true", but is my understanding of what that parameter does correct, i.e., if it is set to true, that the "Cookie:" headers sent by the applet (via HttpClient) would then be combined into a single "Cookie:" header? Also, if this parameter will cause the "Cookie:" headers to be combined, do you know what the separator character will be (i.e., a comma, or a semi-colon) between the original cookie strings? Thanks again! Jim --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org