Created
February 17, 2016 20:53
-
-
Save kentr/5e5501c619ade0fdecfc to your computer and use it in GitHub Desktop.
Request object parameters, PHP-PM
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 PHP-PM 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 | |
( | |
[SERVER_NAME] => localhost | |
[SERVER_PORT] => 80 | |
[HTTP_HOST] => localhost | |
[HTTP_USER_AGENT] => Symfony/2.X | |
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5 | |
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7 | |
[REMOTE_ADDR] => 127.0.0.1 | |
[SCRIPT_NAME] => /index.php | |
[SCRIPT_FILENAME] => /var/www/html/index.php | |
[SERVER_PROTOCOL] => HTTP/1.1 | |
[REQUEST_TIME] => 1455741995 | |
[PATH_INFO] => | |
[REQUEST_METHOD] => POST | |
[CONTENT_TYPE] => application/x-www-form-urlencoded | |
[REQUEST_URI] => /search/node?keys=Foobar&q=Baz | |
[QUERY_STRING] => keys=Foobar&q=Baz | |
[DOCUMENT_ROOT] => /var/www/html | |
[GATEWAY_INTERFACE] => CGI/1.1 | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment