I have a mobile app that I targeted for iOS and Android. It makes a login request via HTTPS (using a POST with HTTPService)..Everything works fine while debugging on my dev
Different virtual flash viewers resolve errors like this differently based on the platform. Best thing to do would be to apply a bunch of error handlers and see what results.
I'm going to quote an entire "solution" from this long-running google search result: http://www.judahfrangipane.com/blog/2007/02/15/error-2032-stream-error/
Try listening for the HTTP_STATUS Event, then adding event handlers for all the error-types to get a more granular level of response.
Example:
public function doRequest(url:String = "http://www.example.com/page.php?something=whatYouWant"):void {
var fileRequest:URLRequest = new URLRequest(url);
var myLoader:URLLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, onLoaderReady);
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, function(evt:Object):void{handleError(evt,"HTTPStatusEvent.HTTP_STATUS");});
myLoader.addEventListener(IOErrorEvent.IO_ERROR, function(evt:Object):void{handleError(evt,"IOErrorEvent.IO_ERROR");});
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(evt:Object):void{handleError(evt,"SecurityErrorEvent.SECURITY_ERROR");});
myLoader.load(fileRequest);
}
private function handleError(evt:Object , listenerType = "Anonymus"):void{
trace('handleError listenerType '+listenerType+'\nError: '+evt);
}
Since it's Android specifically, make sure that you add the proper "permissions" for it to use the Internet, detect connections, etc. in the Manifest file:
]]>