var myText:String;
var myRequest:URLRequest=new URLRequest(serverAddress+"myfile.php?parameter=" + root.loaderInfo.parameters.imei+"&area_id="+root.l oaderInfo.parameters.area_id);
myRequest.method="POST";
myText = "process=false";
myRequest.data=myText;
navigateToURL(myRequest, "_self");
Okay that's the code. Thing is that this is causing issues as when we return to page then every link on that frame has went from https.. to http.. So when we click links on the frame and end up using flash application again it doesn't send the requests. Pretty sure it's because it's changed from https to http(kind of hard to describe what's happening exactly).
Curiously enough this flaw appears(so far that we have checked) on firefox only. Internet explorer links stay https and everything works as intended. But on firefox we need to reload the page after running the swf file with above code.
Do I need to do something special to get the http request to work with https?
edit: We were able to get around the issue by hardcoding the links to be full ones rather than relative but I would still like to know if there's way to fix this issue from the actionscript code.
http request to https causing issue
Friday, June 8, 2012
[Action Script] http request to https causing issue June,2012
Posted by Bimo Hery Prabowo at 3:13 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment