Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash 如何使用ActionScript获取响应头?(闪光)_Flash_Actionscript 3_Url_Header_Mxml - Fatal编程技术网

Flash 如何使用ActionScript获取响应头?(闪光)

Flash 如何使用ActionScript获取响应头?(闪光),flash,actionscript-3,url,header,mxml,Flash,Actionscript 3,Url,Header,Mxml,所以。。。我有一个类似www.example.com/stream的URL/ 我需要对此url发出任何请求,并获取Http Rewspons标头(如下所示: HTTP/1.0 200 OK Content-type: video/x-flv Cache-Control: no-cache 我根本不需要回复主体。在我得到标题后,我需要立即关闭到该url的连接(因此停止以从中获取数据) 如何快速地完成这样的事情(我使用Flash builder)这在空中是可能的(我从未尝试过): 我唯一能想到的

所以。。。我有一个类似www.example.com/stream的URL/

我需要对此url发出任何请求,并获取Http Rewspons标头(如下所示:

HTTP/1.0 200 OK
Content-type: video/x-flv
Cache-Control: no-cache
我根本不需要回复主体。在我得到标题后,我需要立即关闭到该url的连接(因此停止以从中获取数据)


如何快速地完成这样的事情(我使用Flash builder)

这在空中是可能的(我从未尝试过):


我唯一能想到的另一种方法是直接使用。虽然它更复杂,但还有一些与安全相关的问题是PITA。

在哪里可以验证答案?我们似乎仍然得到一个空的标题数组。