可以从任意网页FLASH下载HTML? [英] Can flash download html from random webpage?
本文介绍了可以从任意网页FLASH下载HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经放弃了试图获得一个网页的源代码(我并不拥有这个服务器)在AS3。它所做的就是抛出一个沙箱冲突错误(2048)。到目前为止,我得出了一个结论,唯一可能的解决方案是:
I have given up on trying to get the source of a webpage (I don't own this server) in AS3. All it does is throw an sandbox violation error (2048). So far I have come to a conclusion that the only solutions possible are:
- 请我的Web服务器提供内容服务,以瑞士法郎。
- 请代理服务器与crossdomain.xml的瑞士法郎。
不知何故,这两个选项都被我的前辈和放大器拒绝;我推了一个更好的解决方案。
Somehow, both the options are being rejected by my seniors & I am being pushed for a better solution.
我没有任何想法,如果什么都可以,没有人在这里有一个?
编辑: 也许一些黑客,其中'A'可能不需要政策文件,直接使用的B以通讯:
I don't have any idea if anything else is possible, does anyone here have one??
EDIT : Maybe some hack where 'A' may not need the policy file to communicate directly with 'B' :
推荐答案
我想一个简单的PHP代理是最简单的方法:
I think a simple PHP proxy is the easiest way:
<?php
echo system ("curl \"".$_GET["url"]."\"");
?>
和与调用它
http://www.yourserver.com/pathtoyourscript/proxy.php?url=http://www.yoururl.com
没有测试过,但一般来说它应该工作。
not tested, but in general it should work.
这篇关于可以从任意网页FLASH下载HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文