Copy link to clipboard
Copied
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=CGMSBAUPUKsYsanorQUiGQD..."]
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);