On 02/04/2013 12:49 PM, Michael Schnell wrote: > On 02/04/2013 12:35 PM, Ludo Brands wrote: >> >> Apparently you need Cookies so that is not a good solution. >> > Ahh. Obviously this is one of the reasons why Thttpsend is done like it is. > > I'll try to find out more on cookie handling in the docs (might be > somewhat hard, as I don't know how this cookie stuff is supposed to work > between the server and the browser) . > > If I do Document.Clear before calling HTTPMethod(), will the cookies > received previously be forgotten or will they be handles somehow > (magically) automatically, or does the user program need to to something > clever with them ? > Same http://synapse.ararat.cz/doc/help/httpsend.THTTPSend.html
"property Cookies: TStringList read FCookies; This is stringlist with name-value stringlist pairs. Each this pair is one cookie. After HTTP request is returned cookies parsed to this stringlist. You can leave this cookies untouched for next HTTP request. You can also save this stringlist for later use." So just clear THTTPSend.Document before doing a GET and clear THTTPSend.Headers if you don't use custom headers. The Cookies will remain in place. Ludo ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public