Link to home
Start Free TrialLog in
Avatar of rmirabelle
rmirabelle

asked on

Flash SSL

To enable secure swf-to-server communication with secure server-to-swf replies, you may want to use the sendAndLoad method of the LoadVars class to send an SSL encrypted request to a server.

My tests have shown that if you use the sendAndLoad method (implying that you expect a reply from the server) and want to send to an https address e.g.

my_loadvars_out.sendAndLoad('https://www.site.com/page.php', my_loadvars_in);

that the swf that's making this request must ITSELF have been served via https.

I'm trying to get confirmation that this is correct.

Attempting to use sendAndLoad to an https address from an swf that itself is served via http seems to cause an immediate IO error when the attempt is made


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="250">
<param name="movie" value="https://www.site.com/test.swf" />
<param name="quality" value="high" />
<embed src="https://www.site.com/test.swf" width="300" height="250" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">
</embed>
</object>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You have a couple of HTTP in that code snippet like codebase or pluginspage...  Make sure they are all HTTPS and valid URLs...

CyanBlue