#1 2014-08-09 11:38:42

louis_riviera
Member
Registered: 2013-09-23
Posts: 61

Cookies

How to manage cookies with Synopse WinHTTP ? Is there something like TIdCookieManager for WinHTTP? smile

Offline

#2 2014-08-09 14:33:52

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Cookies

There is no direct cookie support yet.
In fact, in a RESTful world, cookies do not exist... they are implementation details of HTTP.
So mORMot does not rely on them.

In the framework, cookies are handled at higher level, only for the server, i.e. with TSQLRestServerURIContext.InCookie[] and TSQLRestServerURIContext.OutSetCookie properties.
You can find in TSQLRestServerURIContext some code to start with.
But it is for the server side, not for clients (WinHttp).

Offline

#3 2014-08-11 11:54:54

louis_riviera
Member
Registered: 2013-09-23
Posts: 61

Re: Cookies

Ofcourse you can manipulate cookies! The problem is SynCrt didn't implement it... sadly.

Will need to make my own wrapper.

http://msdn.microsoft.com/en-us/library … s.85).aspx

Offline

Board footer

Powered by FluxBB