8000 Mentioned the new feature to pass custom HTTP headers when submiting forms by javiereguiluz · Pull Request #9669 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Mentioned the new feature to pass custom HTTP headers when submiting forms #9669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
Next Next commit
Mentioned the new feature to pass custom HTTP headers when submiting …
…forms
  • Loading branch information
javiereguiluz committed Apr 23, 2018
commit 167b1fff73de67d31312287ebe9c00d7b3a9e605
10 changes: 10 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,16 @@ their type::
PHP format (it converts the keys with square brackets notation - e.g.
``my_form[subject]`` - to PHP arrays).

.. tip::

The ``submit()`` method defines a third optional argument to add custom
HTTP headers when submitting the form::

$client->submit($form, array(), array('Accept-Language' => 'es'));

.. versionadded:: 4.1
The feature to add custom HTTP headers was introduced in Symfony 4.1.

Adding and Removing Forms to a Collection
.........................................

Expand Down
0