作者buubuu (buu)
看板Flash
標題[問題] AS3.0與Http
時間Sun Sep 21 22:52:29 2008
比如說現在有一個網址
http://abc.com連線之後
會轉導向到另一個網址
http://efg.com
現在我想取得轉導向後的網址
我知道
http://efg.com會放在header field
想請問一下
AS3.0中
是否有能夠取得header field 的function呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.116.0.100
推 cjcat2266:用URLLoader去載入html,然後用XML去解析它 09/21 22:56
→ cjcat2266:應該就可以抓出你說在header field裡面的資料 09/21 22:57
→ ybite:如果你說的header是HTTP header,Try httpStatus event 09/21 23:25
→ ybite:HTTPStatusEvent class中就有responseHeaders 09/21 23:25