Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let space = NSURLProtectionSpace(host: "110.110.110.110",
- port: 9000, protocol: "http",
- realm: "110.110.110.110",
- authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
- let cre = NSURLCredential(user: "someSome",
- password: "someSome",
- persistence: .ForSession)
- Manager.sharedInstance.session.configuration.URLCredentialStorage?.setCredential(
- cre,
- forProtectionSpace: space)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement