It looks like your bugfix did not solve the bug.
TFPHTTPClient still holds only last cookie in fpc 3.2.1-Svn 62267 and latest svn version.(My fpc contains your bugfix).
I uploaded test project with server and httpclient app. Chrome-Browser holds cookie until it is closed, but TFPHTTPClient loses it after second call.
Maybe you should open the bug report again.
Hi Soner,
Based on your test project, I think you missunderstood what this bug was about. Your test project sets/clears *one cookie*. The bug I fixed is related to having
more than one cookie in the *same* response.
A comment about THTTPClient.cookies in the source code:
// Cookies. Set before request to send cookies to server.
// After request the property is filled with the cookies sent by the server.
Property Cookies : TStrings Read GetCookies Write SetCookies;
You are supposed to set the cookies property every time before sending your request. Managing cookies is not part of THTTPClient, the property is a simple TStringList. At least in FPC 3.2.0
IIRC, FCL-Web comes with at least one example that shows how to retain cookies during multiple requests.