To illustrate:
<?phpOutput:
var_dump($_POST);
?>
<form action="test.php" method="post">
<input name="this.is.a/variable" type="text" />
<input type="submit" />
</form>
array(1) {Notice the array key in the var_dump(); dots are converted into underscore.
["this_is_a/variable"]=>
string(0) ""
}
Solution
I accessed the raw input stream directly instead of using $_POST:
<?php
$data = file_get_contents("php://input");
$response = proxy_blah_blah($data);
?>
No comments:
Post a Comment