ColdFusion 11 CFHTTP NTLM支持

时间:2014-12-23 11:31:15

标签: coldfusion ntlm cfhttp coldfusion-11

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

0 个答案:

没有答案