How to have commas in Cookies (HttpWebRequest)?

K

kingkong88

In the Cookie class that is used with the HttpWebRequest class, commas
are not permitted in the Value property of a Cookie object. This looks
like unusually restrictive as I know of many cookies out there that
contain commas (eg Vignette URLs), and most other programming models
allow commas.

Is there a way to overcome this in .NET Framework 1.1?

Thanks.
 
R

Rob Schieber

In the Cookie class that is used with the HttpWebRequest class, commas
are not permitted in the Value property of a Cookie object. This looks
like unusually restrictive as I know of many cookies out there that
contain commas (eg Vignette URLs), and most other programming models
allow commas.

Is there a way to overcome this in .NET Framework 1.1?

Thanks.

Have you tried urlencoding the commas?
 
K

kingkong88

Thanks. But do web servers URLdecode for cookies?

I tried URLencoding it, and the response from the web server remains
URLencoded.
 
K

kingkong88

On an IIS, I read the posted cookie on the server side and it does come
out URL decoded. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top