0

synchronous communication: tropo sending variables to a self-hosted php script

Hello, I'm trying to create a synchronous communication between a tropo application and my server (e.g. when a user calls the tropo app, the server is instantly notified for her choices). I received some valuable feedback from the IRC, but now I am stuck in a simple problem (at least I hope). So the tropo app sends via cURL the variables (name & surname) to my server app: 'John', 'surname' => 'Doe'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch); ?> but my server app doesn't seem to be able to read them : Variables I received: '; echo '

'; print_r ($_POST['name']); print_r ($_POST['surname']); echo ''; ?> I suppose there is some fundamental problem in there, which I don't seem to grasp; forgive my ignorance, I'm fairly new in the development of tropo apps. Thanks in advance

28 comments

Please sign in to leave a comment.