Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Cookie

$
0
0
Sorry, cookie support is currently not in the Casablanca APIs. I know, it seems pretty basic...

That said, cookies are passed as headers (in both directions), and you should be able to handled them yourself by examining the headers of incoming responses and setting headers of outgoing requests. Instead of calling request() with the method and request uri directly, you will need to create a http_request object, add the set-cookie header, and use the request() overload that takes a http_request instance.

I believe RFC 2109 should provide all the information you need.

Niklas

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>