REST客户端支持NTLM auth吗?
-
29-09-2019 - |
题
能 休息客户 NTLM身份验证吗?
我在文档中没有看到有关身份验证类型的任何选项:
require 'rest_client'
resource = RestClient::Resource.new 'http://website', :auth_type => 'ntlm', :user => 'USERNAME', :password => 'PASSWORD'
results = resource.get
:auth_type => 'ntlm'
不起作用,我也找不到文档或IRC室上的任何东西。
解决方案
NTLM需求确实缩小了您可以使用的HTTP软件,因为它非常适合Microsoft。
您可能想看”ntlm对红宝石的身份验证和卷发”,然后查看使用 Typhoeus 而不是休息客户。
不隶属于 StackOverflow