如何使用Alamofire提出NTLM请求?

时间:2015-03-05 06:41:46

标签: ios swift alamofire

我正在尝试使用NTLM身份验证质询提出服务请求。

Alamofire.request(.GET,
            "http://<theurl>").authenticate(usingCredential: NSURLCredential(user: "<theuser>", password: "<thepwd>", persistence: .ForSession)).response {
                (request, response, data, error )  in
                println(request)
                println(response)
                println(error)
        }

但它总是会出现HTTP 405错误。有什么方法可以实现这个目标?

0 个答案:

没有答案