Feature/json request

AFAIK we need to check both, from the php.nets manual page to getallheaders() nginx and apache work different. getallheaders() is available on Apache.