.NET Compact Framework - cookie-based web service access

I need to access a web service from a .NET Compact Framework 3.5 application. The problem is that the web service uses cookies for authentication. In a desktop application, I use .NETs CookieContainer (), which is missing in CF. How can I manage cookies in CF without a CookieContainer?

Can someone give me a hand to solve this problem? Thanks. MATTHEW

+4
source share
2 answers

I managed to solve the problem. I found an example posted by Alex Feynman (link below), extremely useful. Take a look at its excellent solution if you encounter a similar problem.

Regards, MattheW

http://groups.google.com/groups?threadm=OSxq7SlTEHA.1244%40TK2MSFTNGP10.phx.gbl

0
source

You will need to work directly with the HTTP cookie header.

There is a reasonable code example on this forum to get you started:

Cookies in the Compact Framework

Take a look at this Wikipedia article for more general information on the HTTP Cookie header:

HTTP Cookie - Implementation

+3
source

Source: https://habr.com/ru/post/1301221/


All Articles