PDA

View Full Version : LoadVars.sendAndLoad not working in IE


Spoe
05-31-2006, 04:22 PM
I've several calls to LoadVars.sendAndLoad() that work just fine in Mozilla, Firefox, etc. but fail in IE. The request gets to the server and is processed but the response is never seen by my SWF. IE Watch reports ERROR_INTERNET_UNABLE_TO_CACHE_FILE as the status of these requests and reports no response information (headers, size, etc.).

Sample request code:
var resWinOdds:LoadVars = new LoadVars();
resWinOdds.onLoad = winOddsOnLoad;

function doGetWinOdds() {
if (spinning) return;
var reqWinOdds:LoadVars = new LoadVars();
reqWinOdds.account = account;
reqWinOdds.authkey = authkey;
reqWinOdds.menu = 'win_odds';
reqWinOdds.sendAndLoad("https://www.brisnet.com/php/jackpot/menu.php", resWinOdds, "GET");
}

The URL generated by the sendAndLoad() request works if cut and pasted to the IE address bar and gives the expected response. And, as stated, this works fine in other browsers, but does not work in IE 6.

Changing the method to POST has no effect. Nor do any changes I've tried on the server, such as trying different content-types, etc.

Any ideas?

jsebrech
06-01-2006, 08:02 AM
I suspect this is related to a comparable bug with receiving XML over HTTPS in IE. This thread (http://actionscript.org/forums/showthread.php3?t=105782) explains more about it.

Flash Gordon
06-01-2006, 08:18 AM
trying adding a "no-cache" in your php headers.

Spoe
06-01-2006, 08:16 PM
I suspect this is related to a comparable bug with receiving XML over HTTPS in IE.

Thanks! That was it. Once I cleared the Pragma: no-cache headers that were being sent from Apache, all cleared up.