Re: Issue with cookie recognition with comma as delimiter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Experts,
 
Please help me on this issue (posted as below) as it is very critical issue at our end.

Thanks & Regards,
Uday Kiran Gannavarapu
Tata Consultancy Services
Mailto: uk.gannavarapu@xxxxxxx
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________

-----Uk Gannavarapu <uk.gannavarapu@xxxxxxx> wrote: -----

To: users@xxxxxxxxxxxxxxxx
From: Uk Gannavarapu <uk.gannavarapu@xxxxxxx>
Date: 09/15/2010 05:01PM
Subject: Issue with cookie recognition with comma as delimiter

Hi,
 
I am sending the cookie back to web server (appache 2 . 2 ) ; it is not
getting recognized.
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 request is explained as below.

Cookie is prepared in the below method, where variable cookie used contains
all the cookies received in the header from the response.

protected String prepareCookie()
{
String cookieValue = "";
for(int z=0; z< cookie .size(); z++)
{
KeyValueInfo keyValueInfo = (KeyValueInfo) cookie .get(z);
String key = (String)keyValueInfo.getKey();
String value = (String)keyValueInfo.getValue();
if(key.equalsIgnoreCase("Set- Cookie "))
{
if(cookieValue.equals(""))
{
cookieValue = cookieValue + value;
}
else
{
cookieValue = cookieValue + "," + value;
}
}
}
return cookieValue;
}

Now when I send this cookie it is not recognized , however if I replace
comma with semi-colon while adding cookies in the above method it works
fine. Let me know if there is any to do solve this. I can't change the code
of the client to prepare cookie to replace comma to semi-colon .


Thanks & Regards,
Uday Kiran Gannavarapu
Tata Consultancy Services
Mailto: uk.gannavarapu@xxxxxxx
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain

confidential or privileged information. If you are

not the intended recipient, any dissemination, use,

review, distribution, printing or copying of the

information contained in this e-mail message

and/or attachments to it are strictly prohibited. If

you have received this communication in error,

please notify us by reply e-mail or telephone and

immediately and permanently delete the message

and any attachments. Thank you



--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux