Skip to main content
Known Participant
July 30, 2015
Question

URLMonitor bad results on MOBILE

  • July 30, 2015
  • 0 replies
  • 288 views

I belive this is an URLMonitor/google problem.

Here is the the response for HTTPStatusEvent.HTTP_RESPONSE_STATUS listener:
503 [HTTPStatusEvent type="httpResponseStatus" bubbles=false cancelable=false eventPhase=2 status=503 redirected=true responseURL="http://ipv4.google.com/sorry/IndexRedirect?continue=http://www.google.com/&q=CGMSBAUPUKsYsanorQUiGQDxp4NLixHuTLQF8iNtkr0Afq-2MJOIr6k"]

the response for HTTPStatusEvent.HTTPStatusEvent.HTTP_STATUS listener:
503 [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=503 redirected=true responseURL=null]

This testing was based on an attempt to load http://www.google.com
This WORKS on desktop, but NOT on my test Galaxy S5.
Can anyone else confirm this issue?

var url:URLRequest = new URLRequest("http://www.google.com"); 
url.method = "HEAD"; mInternetMonitor = new URLMonitor(url);
 mInternetMonitor.pollInterval = 4000; 
mInternetMonitor.addEventListener(StatusEvent.STATUS, _handleCheckInternetConnection); 
mInternetMonitor.start();   
var ldr:URLLoader = new URLLoader(); 
ldr.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, rStatus);
 ldr.addEventListener(HTTPStatusEvent.HTTP_STATUS, hStatus);
 ldr.addEventListener(IOErrorEvent.IO_ERROR, ioErr);
 ldr.load(url);

This topic has been closed for replies.