Last active
February 17, 2016 20:54
-
-
Save kentr/dca6cf2f253fd2ded6b8 to your computer and use it in GitHub Desktop.
Request object parameters, nginx + PHP-FPM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resulting Symfony Request object while running under nginx + PHP-FPM from the curl request | |
curl --max-redirs 0 \ | |
--data "form_id=search_form&form_build_id=form-hBDOkME24rvyD5ePeZ2m_NryapLP3jHjZrTs&keys=Abico&op=Search" \ | |
"http://localhost/search/node?keys=Foobar&q=Baz" | |
------------------------------------------------------------------------------------------------------ | |
Symfony\Component\HttpFoundation\Request Object | |
( | |
[request] => Symfony\Component\HttpFoundation\ParameterBag Object | |
( | |
[parameters:protected] => Array | |
( | |
[form_id] => search_form | |
[form_build_id] => form-hBDOkME24rvyD5ePeZ2m_NDpLCq1XryapLP3jHjZrTs | |
[keys] => Abico | |
[op] => Search | |
) | |
) | |
[query] => Symfony\Component\HttpFoundation\ParameterBag Object | |
( | |
[parameters:protected] => Array | |
( | |
[keys] => Foobar | |
[q] => Baz | |
) | |
) | |
[server] => Symfony\Component\HttpFoundation\ServerBag Object | |
( | |
[parameters:protected] => Array | |
( | |
[USER] => www-data | |
[HOME] => /var/www | |
[FCGI_ROLE] => RESPONDER | |
[QUERY_STRING] => keys=Foobar&q=Baz | |
[REQUEST_METHOD] => POST | |
[CONTENT_TYPE] => application/x-www-form-urlencoded | |
[CONTENT_LENGTH] => 103 | |
[SCRIPT_FILENAME] => /var/www/html/index.php | |
[SCRIPT_NAME] => /index.php | |
[REQUEST_URI] => /search/node?keys=Foobar&q=Baz | |
[DOCUMENT_URI] => /index.php | |
[DOCUMENT_ROOT] => /var/www/html | |
[SERVER_PROTOCOL] => HTTP/1.1 | |
[GATEWAY_INTERFACE] => CGI/1.1 | |
[SERVER_SOFTWARE] => nginx/1.8.0 | |
[REMOTE_ADDR] => 127.0.0.1 | |
[REMOTE_PORT] => 45539 | |
[SERVER_ADDR] => 127.0.0.1 | |
[SERVER_PORT] => 80 | |
[SERVER_NAME] => localhost | |
[HTTPS] => | |
[REDIRECT_STATUS] => 200 | |
[PATH_INFO] => | |
[HTTP_USER_AGENT] => curl/7.35.0 | |
[HTTP_HOST] => localhost | |
[HTTP_ACCEPT] => */* | |
[HTTP_CONTENT_LENGTH] => 103 | |
[HTTP_CONTENT_TYPE] => application/x-www-form-urlencoded | |
[PHP_SELF] => /index.php | |
[REQUEST_TIME_FLOAT] => 1455740575.3001 | |
[REQUEST_TIME] => 1455740575 | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment