I want to create a controller action to handle the Amazon AWS SNS endpoint. The problem seems to be that the sns POST is not a standard post so I get strange results - I see the post arrive at the apache log but it never hits my controller action.
Has anyone else any experience with this? I am doing the following:
public function actionAwsbounce() {
yii::log('----------------','warning','got something in awsbounce');
$xml = file_get_contents('php://input');
yii::log(var_export($xml,true),'warning','file get contents');
yii::log(var_export($_REQUEST,true),'warning','request');
if (isset($HTTP_RAW_POST_DATA)) {
yii::log(var_export($HTTP_RAW_POST_DATA,true),'warning','http_raw');
}
but none of the logging gets triggered from Aws. It works fine when hit from a browser.