We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fabpot
nicolas-grekas
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent d4dbf45 commit 6776a35Copy full SHA for 6776a35
testing.rst
@@ -749,6 +749,16 @@ their type::
749
PHP format (it converts the keys with square brackets notation - e.g.
750
``my_form[subject]`` - to PHP arrays).
751
752
+.. tip::
753
+
754
+ The ``submit()`` method defines a third optional argument to add custom
755
+ HTTP headers when submitting the form::
756
757
+ $client->submit($form, array(), array('HTTP_ACCEPT_LANGUAGE' => 'es'));
758
759
+ .. versionadded:: 4.1
760
+ The feature to add custom HTTP headers was introduced in Symfony 4.1.
761
762
Adding and Removing Forms to a Collection
763
.........................................
764
0 commit comments