• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

URLMonitor bad results on MOBILE

Community Beginner ,
Jul 30, 2015 Jul 30, 2015

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);

TOPICS
Performance issues

Views

250

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines