[問題] AS3.0與Http

看板Flash作者 (buu)時間17年前 (2008/09/21 22:52), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
比如說現在有一個網址http://abc.com連線之後 會轉導向到另一個網址http://efg.com 現在我想取得轉導向後的網址 我知道http://efg.com會放在header field 想請問一下 AS3.0中 是否有能夠取得header field 的function呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.0.100

09/21 22:56, , 1F
用URLLoader去載入html,然後用XML去解析它
09/21 22:56, 1F

09/21 22:57, , 2F
應該就可以抓出你說在header field裡面的資料
09/21 22:57, 2F

09/21 23:25, , 3F
如果你說的header是HTTP header,Try httpStatus event
09/21 23:25, 3F

09/21 23:25, , 4F
HTTPStatusEvent class中就有responseHeaders
09/21 23:25, 4F
文章代碼(AID): #18rb-k0H (Flash)