I'm basically interacting with a third party API flash file to send HTTP POST requests to my server.
I know I'm on somewhat the right path because it requires a crossdomain.xml
file, and before I added that part nothing in the POST variables was showing up, however since I added that file there are 4 variables that are set, these POST variables are sent by the application to give me basic information about the file.. but I actually need to read the RAW POST data to actually save the image being sent by the Flash.
I'm aware there are 3 ways...
$GLOBALS['HTTP_RAW_POST_DATA']
$HTTP_RAW_POST_DATA which is probably the same as the first
file_get_contents('php://input')
For whatever reason, neither of these "work". By "work" I mean they're not being set, when I var dump them I get nothing.
Could it be that there's a setting in php.ini
that I need to set, or perhaps the Flash application is truly not sending the actual image? I think it's doing the right thing, because it's a semi popular API and it's used by a couple other sites so I'm pretty sure it's right on their end.
And they don't require any sort of API key either.