httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uk Gannavarapu <uk.gannavar...@tcs.com>
Subject Re: [users@httpd] Issue with cookie recognition with comma as delimiter
Date Thu, 16 Sep 2010 06:08:28 GMT
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Hi
Experts,</DIV><DIV>&nbsp;</DIV><DIV>Please help me on this issue
(posted as below) as it is very&nbsp;critical issue&nbsp;at our end.<BR><BR>Thanks
&amp; Regards,<BR>Uday Kiran Gannavarapu<BR>Tata Consultancy Services<BR>Mailto:
<A href="mailto:uk.gannavarapu@tcs.com" target=blank>uk.gannavarapu@tcs.com</A><BR>Website:
<A href="http://www.tcs.com/" target=blank>http://www.tcs.com</A><BR>____________________________________________<BR>Experience
certainty. IT Services<BR>Business Solutions<BR>Outsourcing<BR>____________________________________________<BR></DIV><DIV><DIV><BR></DIV><FONT
color=#990099>-----Uk Gannavarapu &lt;uk.gannavarapu@tcs.com&gt; wrote: -----<BR><BR></FONT><BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid;
MARGIN-RIGHT: 0px">To: users@httpd.apache.org<BR>From: Uk Gannavarapu &lt;uk.gannavarapu@tcs.com&gt;<BR>Date:
09/15/2010 05:01PM<BR>Subject: [users@httpd] Issue with cookie recognition with comma
as delimiter<BR><BR><FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"
size=2><DIV>Hi, </DIV><DIV>&nbsp; </DIV><DIV>I am sending
the <B style="COLOR: black; BACKGROUND-COLOR: #ffaaaa">cookie </B>back to web
server (appache <B style="COLOR: black; BACKGROUND-COLOR: #aaffaa">2 </B>. <B
style="COLOR: black; BACKGROUND-COLOR: #aaffaa">2 </B>) ; it is not <BR>getting
recognized. <BR></DIV><DIV>Context: I'm trying to send a cookie back to
webserver (as it is required for few validations) as obtained from previous response, the
cookie is not getting recognized. The cookie preparation to set in the new&nbsp;request
is explained as below. </DIV><DIV><BR><B style="COLOR: black; BACKGROUND-COLOR:
#ffaaaa">Cookie </B>is prepared in the below method, where variable <B style="COLOR:
black; BACKGROUND-COLOR: #ffaaaa">cookie </B>used contains <BR>all the cookies
received in the header from the response. <BR><BR>protected String prepareCookie()
<BR>{ <BR>String cookieValue = ""; <BR>for(int z=0; z&lt; <B style="COLOR:
black; BACKGROUND-COLOR: #ffaaaa">cookie </B>.size(); z++) <BR>{ <BR>KeyValueInfo
keyValueInfo = (KeyValueInfo) <B style="COLOR: black; BACKGROUND-COLOR: #ffaaaa">cookie
</B>.get(z); <BR>String key = (String)keyValueInfo.getKey(); <BR>String
value = (String)keyValueInfo.getValue(); <BR>if(key.equalsIgnoreCase("Set- <B style="COLOR:
black; BACKGROUND-COLOR: #ffaaaa">Cookie </B>")) <BR>{ <BR>if(cookieValue.equals(""))
<BR>{ <BR>cookieValue = cookieValue + value; <BR>} <BR>else <BR>{
<BR>cookieValue = cookieValue + "," + value; <BR>} <BR>} <BR>} <BR>return
cookieValue; <BR>} <BR><BR>Now when I send this <B style="COLOR: black;
BACKGROUND-COLOR: #ffaaaa">cookie </B>it is not recognized , however if I replace
<BR><B style="COLOR: black; BACKGROUND-COLOR: #ffff80">comma </B>with <STRONG>semi-colon
</STRONG>while adding cookies in the above method it works <BR>fine. Let me know
if there is any to do solve this. I can't change the code <BR>of the client to prepare
<B style="COLOR: black; BACKGROUND-COLOR: #ffaaaa">cookie </B>to replace <B
style="COLOR: black; BACKGROUND-COLOR: #ffff80">comma </B>to <STRONG>semi-colon
</STRONG>. <BR><BR><BR>Thanks &amp; Regards, <BR>Uday Kiran
Gannavarapu <BR>Tata Consultancy Services <BR>Mailto: uk.gannavarapu@tcs.com <BR>Website:
http://www.tcs.com <BR>____________________________________________ <BR>Experience
certainty. IT Services <BR>Business Solutions <BR>Outsourcing <BR>____________________________________________
<BR><FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2></DIV></FONT><DIV></DIV></FONT><FONT
face="Default Monospace,Courier New,Courier,monospace" size=2>=====-----=====-----=====<BR><BR>Notice:
The information contained in this e-mail<BR><BR>message and/or attachments to
it may contain <BR><BR>confidential or privileged information. If you are <BR><BR>not
the intended recipient, any dissemination, use, <BR><BR>review, distribution,
printing or copying of the <BR><BR>information contained in this e-mail message
<BR><BR>and/or attachments to it are strictly prohibited. If <BR><BR>you
have received this communication in error, <BR><BR>please notify us by reply e-mail
or telephone and <BR><BR>immediately and permanently delete the message <BR><BR>and
any attachments. Thank you<BR><BR><BR><BR></FONT>---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project. See <URL>for
more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org </BLOCKQUOTE><BR></DIV></FONT><pre
style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained
in this e-mail<br>message and/or attachments to it may contain <br>confidential
or privileged information. If you are <br>not the intended recipient, any dissemination,
use, <br>review, distribution, printing or copying of the <br>information contained
in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you
have received this communication in error, <br>please notify us by reply e-mail or telephone
and <br>immediately and permanently delete the message <br>and any attachments.
Thank you<br><br><br></pre>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message