HTTPSecureSocket Cookie


I’m trying to develop a RESTful client to communicate with I’m able to Authenticate with the service and it returns a cookie. I pick up the cookie in the HeadersReceived event and store them in a string array. I’ve tried multiple places to put them back in to the headers when I send a request back to the service, but it seems that the headers keep getting reset. I’ve tried using SetRequestHeader in the Connected event, the HeadersReceived event, I’ve also tried just prior to using the GET or POST methods.

In every instance, the Cookie header disappears.

Can someone point me in the right direction?


My mistake. I found the bug!