简体   繁体   English

为XMLHttpRequests设置ColdFusion代理

[英]setting up a ColdFusion proxy for XMLHttpRequests

Here's the scenario: 这是场景:

I'm setting up a site where I need to do cross-domain XMLHttpRequests, and the external feed is XML. 我正在建立一个我需要跨域XMLHttpRequests的站点,外部源是XML。

Because of some restrictions on the web server, I need the proxy to be written in ColdFusion. 由于Web服务器的一些限制,我需要在ColdFusion中编写代理。 The URI that needs to be proxied is dynamic, but a set URI is good for now. 需要代理的URI是动态的,但设置URI现在很好用。

I've never written a single line in ColdFusion, so help is much appreciated. 我从来没有在ColdFusion中写过一行,所以非常感谢帮助。

_L _L

Sounds like you need to implement the Remote Proxy Pattern. 听起来你需要实现远程代理模式。 There have been some tutorials and articles on this for ColdFusion. ColdFusion上有一些关于此的教程和文章。 The ColdSpring framework can help you create them, but using ColdSpring is not necessarily easy for someone new to ColdFusion. ColdSpring框架可以帮助您创建它们,但对于ColdFusion的新手来说,使用ColdSpring并不一定容易。

These might be what you're looking for: 这些可能是您正在寻找的:

http://www.bennadel.com/blog/1501-Creating-A-Remote-AJAX-Proxy-In-Javascript-Without-ColdFusion-8-s-CFAjaxProxy.htm http://www.bennadel.com/blog/1564-Ask-Ben-Accessing-Cached-CFCs-With-AJAX-via-Remote-Proxies.htm http://randolphlinmark.com/post.cfm/the-remote-proxy-pattern-and-coldfusion-1 http://www.bennadel.com/blog/1501-Creating-A-Remote-AJAX-Proxy-In-Javascript-Without-ColdFusion-8-s-CFAjaxProxy.htm http://www.bennadel.com/blog /1564-Ask-Ben-Accessing-Cached-CFCs-With-AJAX-via-Remote-Proxies.htm http://randolphlinmark.com/post.cfm/the-remote-proxy-pattern-and-coldfusion-1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM