CFhttp 标签相对于 CUrl 实用程序的缺点是什么?

What are the shortcomings of CFhttp tag over CUrl utility?

这是一个概念性的问题,但是在网上搜索和搜索后,我找不到这个小问题的答案。任何帮助,将不胜感激。提前致谢。

当我使用 eNOM API 使用他们提供的测试帐户执行多项操作时出现了这个问题。

https://resellertest.enom.com/interface.asp?command=nameofcommand&
uid=yourloginid&pw=yourpassword&
paramname=paramvalue&nextparamname=nextparamvalue

注意:这只是一个例子Url。这里的密码字段实际上是一个'api-key'.

事实证明,使用 CFhttp 的本机 coldfusion 解决方案在轻松处理输出数据或将 headers 和参数传递给 RESTful API 方面是有益的。出现的第一个问题是:CFhttp 是否支持它 CUrl 加密密码字段,如果没有,是否有任何方法可以实现它?其次,我在阅读 CUrlCFHTTP:

时发现了这段文字

cURL allows you to connect and communicate to many different types of servers with many different types of protocols. Using cURL you can.

  • Implement payment gateways’ payment notification scripts.
  • Download and upload files from remote servers.
  • Login to other websites and access members only sections.

那么,积分是不是。 1 和 2 可能使用 CFhttp?如果是的话,我可以对如何着手做一个简短的想法。

Curl 允许您连接到任何 https 站点而无需安装 'required' 证书。尽管有些人可能认为这不安全,但我真的很喜欢这个功能。除了这个功能,我不相信有很多(如果有的话)你可以用 curl 做,而 cfhttp 无法以某种方式完成。

如果您经常使用 https 站点,那么使用 curl 比使用 CFHTTP (imo) 更容易。

根据 coldfusion 文档,cfhttp 标记使用 SSL 协商安全事务。 (参考http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7ffc.html


更新:您可以使用 coldfusion 中的内置代理监控数据是否加密发送。有关详细信息,请参阅 http://helpx.adobe.com/coldfusion/kb/coldfusion-mx-monitoring-soap-traffic.html