{"action":"created","issue":{"url":"https://api.github.com/repos/bramus/router/issues/67","repository_url":"https://api.github.com/repos/bramus/router","labels_url":"https://api.github.com/repos/bramus/router/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/bramus/router/issues/67/comments","events_url":"https://api.github.com/repos/bramus/router/issues/67/events","html_url":"https://github.com/bramus/router/issues/67","id":304075550,"number":67,"title":"$_POST problem","user":{"login":"abmmhasan","id":7711128,"avatar_url":"https://avatars2.githubusercontent.com/u/7711128?v=4","gravatar_id":"","url":"https://api.github.com/users/abmmhasan","html_url":"https://github.com/abmmhasan","followers_url":"https://api.github.com/users/abmmhasan/followers","following_url":"https://api.github.com/users/abmmhasan/following{/other_user}","gists_url":"https://api.github.com/users/abmmhasan/gists{/gist_id}","starred_url":"https://api.github.com/users/abmmhasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abmmhasan/subscriptions","organizations_url":"https://api.github.com/users/abmmhasan/orgs","repos_url":"https://api.github.com/users/abmmhasan/repos","events_url":"https://api.github.com/users/abmmhasan/events{/privacy}","received_events_url":"https://api.github.com/users/abmmhasan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-10T14:42:29Z","updated_at":"2018-03-11T04:27:10Z","closed_at":null,"author_association":"NONE","body":"$_POST is not working. I can't retrieve post variable with that or not even $_REQUEST.\r\n`$router->post('/', function () { ; });`\r\nLet me know, how to detect post variables?\r\nLike if I wanna get the value of $_POST['Key'] or wanna see all the key, value of $_POST; what to do?"},"comment":{"url":"https://api.github.com/repos/bramus/router/issues/comments/372088520","html_url":"https://github.com/bramus/router/issues/67#issuecomment-372088520","issue_url":"https://api.github.com/repos/bramus/router/issues/67","id":372088520,"user":{"login":"ovflowd","id":12037269,"avatar_url":"https://avatars3.githubusercontent.com/u/12037269?v=4","gravatar_id":"","url":"https://api.github.com/users/ovflowd","html_url":"https://github.com/ovflowd","followers_url":"https://api.github.com/users/ovflowd/followers","following_url":"https://api.github.com/users/ovflowd/following{/other_user}","gists_url":"https://api.github.com/users/ovflowd/gists{/gist_id}","starred_url":"https://api.github.com/users/ovflowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovflowd/subscriptions","organizations_url":"https://api.github.com/users/ovflowd/orgs","repos_url":"https://api.github.com/users/ovflowd/repos","events_url":"https://api.github.com/users/ovflowd/events{/privacy}","received_events_url":"https://api.github.com/users/ovflowd/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T04:27:10Z","updated_at":"2018-03-11T04:27:10Z","author_association":"CONTRIBUTOR","body":"Why are you doing this:\r\n\r\n```php\r\n$router->set404(function () {\r\n        header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');\r\n        echo '404, route not found!';\r\n    });\r\n```\r\n\r\nJust for asking.\r\n\r\nAlso is `$_REQUEST`, not `$_request`. It's case sensitive.\r\n\r\nA proper way would be using something like:\r\n\r\n```php\r\nfile_get_contents(\"php://input\");\r\n```\r\n\r\nInstead of `$_REQUEST`.\r\n\r\nRead more: https://stackoverflow.com/questions/8893574/php-php-input-vs-post"}}
{"actor":{"display_login":"ovflowd"}}