So I'm trying to work around this bug in the flash 6 player:
POST not functioning due to missing content-type
POST requests sent from Macromedia Flash Player Plug-ins were missing a content-type in the header. While many server-side scripts process this correctly without a content-type, the request is not understood or processed by some scripts (such as ASP or PHP pages.) An effective workaround is to manually set the content-type in the server-side page, however, the header issues have been resolved in the updated player.
And I have to confess I have no clue how to implement this "effective workaround".
Let's say I'm POSTing one variable from flash to my PHP page, so my PHP code looks like this:
<?=$foo?>
Exciting, eh? And yes, we're pretending register_globals is on. PHP does nothing, persumably because of this bug (if I change the request type to GET it works fine).
If I do this:
<?
header("content-type: application/x-www-form-urlencoded");
echo $foo
?>
It also, quite understandably, doesn't work, because that is setting the header on the page going back to the browser, not the incoming request.
Any idea how I would change the headers of the incoming request?