Q:

php://input is null though url parameters are sent

(I'm trying to debug why php is not accepting posts from remote sources, even though allow-access is set in .htaccess)
The input stream appears to be null though parameters are sent...
In an empty file: 
<?php echo file_get_contents("php://input"); in file.php returns null when variables such as file.php?foo=bar are appended to the .php file... 
Should this not return null, as variables/parameters are being sent? 

A:

I believe file_get_contents("php://input"); will work only with POST requests.
See php://input
For the case of query parameters, ?foo=bar would be available via $_GET

