receiving post variables from an external source in zendframework 2 <p>i am working on a zendframework 2 project and want to receive post variables from an external source.</p> <p>the source where the values will come from is a payment site (i.e world pay and paypal). i.e the return values of a payment confirming that payment has been made.</p> <p>on the external site, i simply gave the URL of the web page that i want the information to be returned to: </p> <pre><code>http://example-site.com/payments/payment-made </code></pre> <p>then in action function on the controller page i did the following; </p> <pre><code>public function paymentMadeAction() { $contents = file_get_contents('php://input'); // read request contents $data = explode('&amp;', $contents); if ($contents) { foreach($data as &amp;$entry) { $entry = explode('=', $entry); $entry[1] = urldecode($entry[1]); } unset($entry); } print_r($data); } </code></pre> <p>nothing happens though. i mean, i tested it but the values are not being received. when i went to the external source to check if my site received the information it confirmed that the information had been successfully sent</p> <p>is there a special procedure that needs to be followed when receiving information from an external source in zend framework 2</p> <p>would really appreciate any guidance or advise.</p> <p><strong>update:</strong></p> <p>below is a sample of the post variable that should be returned to the site; its a simply http object</p> <pre><code> POST /fail?installation=XXXXXX&amp;msgType=authResult HTTP/1.0 Content-Type: application/x-www-form-urlencoded;charset=UTF-8 Host: www.worldpay.com Content-Length: 973 User-Agent: WJHRO/1.0 (worldPay Java HTTP Request Object) region=new+format+region&amp;authAmountString=%26%23163%3B10.00&amp;_SP.charEnc=UTF8&amp;desc=&amp;tel=&amp;address1=new+format+address1) </code></pre>