XML won't load over HTTPS!!!
I'm writing an application for my PDA that needs to get secure data from my server. I'm using xml.sendAndLoad to achieve this. On a PC browser this works perfectly. On my PDA I get "No Response" when using SSL, I get XML data returned if I don't use SSL.
See the following test code. When I use SSL for the url I get "No Response" when I don't use SSL I get the XML response data.
By the way, I just placed a dynamic text box on the stage to view "returnText".
Flash Code
Code:
var myURL = "https://www.geckopc.com.au/testXML.php";
var xmlReply:XML = new XML();
xmlReply.onLoad = function(success:Boolean)
{
if(success)
{
returnText = xmlReply.firstChild;
}else
{
returnText = "No response";
}
}
var reqXML:XML = new XML("<packet d=\"getData\"></packet>");
reqXML.sendAndLoad(myURL, xmlReply);
PHP Code
Code:
$rawXML = file_get_contents("php://input");
$fh = fopen("phpXML.txt","a");
fputs($fh, $rawXML."\n\n",8182);
fclose($fh);
$xml = new SimpleXMLElement($rawXML);
if($xml['d'] = "getData")
{
echo "<packet><mydata>test data</mydata></packet>";
}else
{
echo "<packet><mydata>No Data requested</mydata></packet>";
}
PDA: Dopod 838Pro, Windows Mobile 6 Pro, PIE with flash 7 player.
SWF: Created in flash cs3, published as version 7 with AS 2.0.
I have exausted my brain on this one, any ideas would be appreciated.