Skip to content

Issue with Cookies in header #71

Closed
@cedb777

Description

@cedb777

I tried to send a cookie to authenticate to the server but nothing has been sent.
When i read the log on server side, the header does not contain the cookie.
Here is my code what i do

    let cookieHeader = HTTPCookie.requestHeaderFields(with: self.cookies)
    socketClient.openSocketWithURLRequest(request: NSURLRequest(url: url as URL) , delegate: self, connectionHeaders:cookieHeader)

Is it possible to open socket with a cookie which is used to authenticate?
Thank you for your help!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions