Flex AIR:如何在没有 Blaze DS 的情况下定义代理
我有一个 AIR 应用程序,需要为其定义代理,因为该服务位于防火墙后面。
我们没有使用 BlazeDS,因此我无法在 proxy-config.xml 文件中定义代理设置。那么,我该怎么做呢?
任何提示表示赞赏。
谢谢!
更新:
我在这个问题上遇到了困难。
我猜我不是第一个在访问数据时必须在防火墙后面工作的人,所以我不确定为什么我在网络上找不到任何与此相关的文档。
AIR 表示它应该自动了解并使用您系统(即默认浏览器)的代理配置。在那里,我没有设置手动代理,而是使用“自动配置”并将其指向 .dat 文件。难道这就是问题所在吗? AIR不知道这个怎么理解吗?
除非您使用 Blaze DS 或 LCDS,否则无法在 HTTPService 组件上设置代理?这是真的吗?我不想将其添加到我的应用程序中,这样我才能完成此任务。
I have an AIR app that I need to define a proxy for because the services sit behind a firewall.
We are not using BlazeDS so I can't define the proxy settings in the proxy-config.xml file. So, how do I do it?
Any tips are appreciated.
Thanks!
UPDATE:
I'm having a hard time with this issue.
I'm guessing that I'm not the first person who has had to work behind a firewall when accessing data so I'm not sure why I can't find any documentation on the web anywhere about this.
AIR says it is supposed to automatically know and use the proxy configuration from your system, i.e. default browser. In there, I don't set a manual proxy, I use the 'automatic configuration' and point it to a .dat file. Could this be where the problem is? Does AIR not know how to understand this?
There's no way to set a proxy on an HTTPService component unless you are using Blaze DS or LCDS? Is this true? I'd hate to have to add that to my application just so I can get this accomplished.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决:问题是我访问的 URL 错误。一旦我开始使用正确的 URL,一切就都正常了。其关键在于 AIR 应始终从默认系统浏览器获取代理设置。
感谢 Flextras 的耐心等待。
SOLVED: The problem was I was given the wrong URL to access. Once I started using the correct URL then everything worked. The crux of it is that AIR should always pick up proxy settings from default system browser.
Thank you Flextras for your patience.