views:

83

answers:

0

hello, I'm sending POST request using URLLoader and URLRequest with XML data. Then API sends response with redirect page(Location header) and i want to get this URL. How do I catch this response?

UPD:

Event.COMPLETE in debugger:

event = flash.events.Event (@6e1edf9) 
 bubbles = false 
 cancelable = false 
 currentTarget = flash.net.URLLoader (@418e241) 
  [inherited] =  
  bytesLoaded = 1 
  bytesTotal = 0 
  data = " " 
  dataFormat = "text" 
  stream = flash.net.URLStream (@77c5fb9) 
   [inherited] =  
   bytesAvailable = 0 
   connected = true 
   endian = "bigEndian" 
   objectEncoding = 3 
 eventPhase = 2 
 target = flash.net.URLLoader (@418e241) 
  [inherited] =  
  bytesLoaded = 1 
  bytesTotal = 0 
  data = " " 
  dataFormat = "text" 
  stream = flash.net.URLStream (@77c5fb9) 
 type = "complete"