Skip to content

[BrowserKit] Tip how to use HttpClient options in BrowserKit requests #15224

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

Merged
merged 1 commit into from
Aug 9, 2022
Merged
Changes from all commits
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
Diff view
6 changes: 6 additions & 0 deletions components/browser_kit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ dedicated web crawler or scraper such as `Goutte`_::
'.table-list-header-toggle a:nth-child(1)'
)->text());

.. tip::

You can also use HTTP client options like 'ciphers', 'auth_basic' and 'query'.
They have to be passed as the default options argument to the client,
which is used by the HTTP browser.

.. versionadded:: 4.3

The feature to make external HTTP requests was introduced in Symfony 4.3.
Expand Down