----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

>>but my cookies are always truncated at the
>>first space.

>try URLEncoder.encode( cookie_value ) ... ?

Nope.  JServ has a bug <gasp> in it's cookie handling code.  A patch was
sent to this group 4-6 weeks ago but nothing came of it.  I just cheked the
list archived and can't unfortunately can't see it.  The problem has to do
with the StringTokenizer that JServ uses to parse cookies.  It uses ", " as
the pattern which means use comma or space to separate cookies.  Maybe billo
would post the patch again.

Good luck,
Dan

-----Original Message-----
From: Crook, Charles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 8:50 AM
To: 'Java Apache Users'
Subject: RE: problem with cookie values


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

try URLEncoder.encode( cookie_value ) ... ?

-----Original Message-----
From: Michael Winton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 22, 2000 11:32 AM
To: Java Apache Users
Subject: problem with cookie values


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hello,

I am using Apache 1.3.12 with JServ 1.1 (no particularly special
configuration) on an NT development server and have found that from my
servlets I am unable to retrieve the full value of a Cookie with a space

in the value.  I have tried setting the Cookie version level so that
this should be supported, but my cookies are always truncated at the
first space.

If I use Tomcat with the same servlet code, the cookies are read in
their entirety.  Unfortunately, for other reasons, I may not be able to
migrate our production environment to Tomcat in the near future.  Also,
I'm not at liberty to redefine the format of the cookie, as there is a
significant amount of non-Java code that is also using it...

Any ideas or experience with this problem?  Is this an NT only issue (if

so, we may need to move our development environment to a unix
machine)...

(Please copy my personal email on your responses, too.)

Thanks,

--
Michael Winton
eMarketing Development Team
Oracle Corporation
(650) 506-4337




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to