HTTP Client Response Headers


I am using the Sparkle HTTP client to access a site that provides multiple Set-Cookie items in the response headers. I have noticed that the when iterating the AllHeaders property of the THttpHeaders it only contains one of these items (the first one received). 

Having looked at the source code it appears that the response headers are stored in a TDictionary and tested for uniqueness which means information is being discarded unnecessarily.  

Is this assumption correct? If so is there any way of fixing this?


Hi John,

indeed Sparkle HTTP client doesn't support multiple Set-Cookie headers. In the meanwhile we have implemented a workaround where values of duplicated headers are provided separated by comma. Please contact us directly through our support e-mail to receive the patch.

Ok Thanks, will do