Skip to content

Commit 997e5cc

Browse files
committed
minor #15224 [BrowserKit] Tip how to use HttpClient options in BrowserKit requests (SpiGAndromeda)
This PR was merged into the 4.4 branch. Discussion ---------- [BrowserKit] Tip how to use HttpClient options in BrowserKit requests It's easy to pass options like 'ciphers' and 'query' to requests made by the HttpClient request method. Currently it's not explained in the documentation of the BrowserKit component how to use these options there. If you know it, it's quite easy: just pass them as default options to the HttpClient that is passed to the Browser on construction. best regards, spigandromeda Commits ------- cc800dd Tip added to explain how to use HttpClient options in BrowserKit requests.
2 parents d24ec84 + cc800dd commit 997e5cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/browser_kit.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ dedicated web crawler or scraper such as `Goutte`_::
317317
'.table-list-header-toggle a:nth-child(1)'
318318
)->text());
319319

320+
.. tip::
321+
322+
You can also use HTTP client options like 'ciphers', 'auth_basic' and 'query'.
323+
They have to be passed as the default options argument to the client,
324+
which is used by the HTTP browser.
325+
320326
.. versionadded:: 4.3
321327

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

0 commit comments

Comments
 (0)