Hi dims, I have created one on JIRA with Improvement type. Please check it. http://issues.apache.org/jira/browse/AXIS-2064
Gerry ----- Original Message ----- From: "Davanum Srinivas" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, June 18, 2005 9:08 PM Subject: Re: Tip for cookie in AXIS 1.2.1 Gerry, Can you please open a JIRA issue? so that we can make this code change in Axis itself? thanks, dims On 6/17/05, Gerry Gao <[EMAIL PROTECTED]> wrote: > Hi guys, > > Here is tip for you who use cookie in AXIS. > > Axis 1.2.1 has a simple cookie mechanism (compare to RFC2965) which already > supports multiple cookies. As far as I know, there is still a cookie > compatible problem. The HTTPSender and CommonsHTTPSender send multiple > cookies in this format: > Cookie: a=a1 > Cookie: b=b2 > Cookie: c=c3 > or > Cookie2: a=a1 > Cookie2: b=b2 > Cookie2: c=c3 > > But according to RFC2965, the multiple cookies should be sent to server in > this format: > Cookie: a=a1;b=b2;c=c3 > > I think most of HTTP server can handle both formats, but some does not. (My > http server + siteminder do not support the first format.) > > Fortunately, commons-httpclient has a parameter to help us with the latter > format. Use this: > DefaultHttpParams.getDefaultParams().setBooleanParameter( > HttpMethodParams.SINGLE_COOKIE_HEADER, > true); > will force httpclient baking the multiple cookies into a single cookie header. > > Reference: > http://htmlunit.sourceforge.net/phpwiki/index.php/SingleCookieHeader > > Gerry > -- Davanum Srinivas -http://blogs.cocoondev.org/dims/
