Amazon Sns Subscribe Endpoint

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');


        if (isset($HTTP_RAW_POST_DATA)) {



but none of the logging gets triggered from Aws. It works fine when hit from a browser.