在 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>