在ColdFusion 11中,Adobe已添加NTLM
支持。但是我不明白我是如何让这个工作的。
特别是,文档似乎是错误的:它声明:
要使用NTLM,必须将重定向属性设置为false
但是,在执行此操作时,ColdFusion会抛出以下异常:
当身份验证类型为NTLM时,不得将重定向设置为false。
是否有人使用NTLM
中的CFHTTP
获得了经验?
我正在使用的代码:
<cfhttp url="#variables.webserviceURL#"
method="post"
result="httpResponse"
charset="utf-8"
timeout="3000"
authType="NTLM"
domain="myDomain"
username="myUser"
password="myPassword">
<cfhttpparam type="header" name="accept-encoding" value="no-compression" />
<cfhttpparam type="xml" value="#trim(soapRequest)#"/>
</cfhttp>