Closed lcherone closed 9 years ago
In firefox, dev edition 40.0a2
To test, ive print_r($_SERVER) the request, here is the result:
print_r($_SERVER)
POST http://example.com Content-Type: application/json -- response -- 200 OK Date: Sat, 15 Aug 2015 03:47:24 GMT Server: Apache/2.4.7 (Ubuntu) X-Powered-By: PHP/5.5.9-1ubuntu4.11 Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 818 Keep-Alive: timeout=5, max=99 Connection: Keep-Alive Content-Type: text/html Array ( [HTTP_HOST] => example.com [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-GB,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_DNT] => 1 [CONTENT_TYPE] => application/json [HTTP_COOKIE] => [HTTP_CONNECTION] => keep-alive [HTTP_PRAGMA] => no-cache [HTTP_CACHE_CONTROL] => no-cache [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [SERVER_SIGNATURE] => <address>Apache/2.4.7 (Ubuntu) Server at example.com Port 80</address> [SERVER_SOFTWARE] => Apache/2.4.7 (Ubuntu) [SERVER_NAME] => example.com [SERVER_ADDR] => 123.123.123.123 [SERVER_PORT] => 80 [REMOTE_ADDR] => 1.1.1.1 [DOCUMENT_ROOT] => /var/www/html [REQUEST_SCHEME] => http [CONTEXT_PREFIX] => /test [CONTEXT_DOCUMENT_ROOT] => /usr/share/app/test [SERVER_ADMIN] => test@example.com [SCRIPT_FILENAME] => /usr/share/app/test/index.php [REMOTE_PORT] => 41926 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => ... )
In firefox, dev edition 40.0a2
To test, ive
print_r($_SERVER)
the request, here is the result: