File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,18 @@ dedicated web crawler or scraper such as `Goutte`_::
349349 ``query ``. They have to be passed as the default options argument to the
350350 client which is used by the HTTP browser.
351351
352+ Dealing with HTTP responses
353+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
354+
355+ When using the BrowserKit component, you may need to deal with responses of
356+ the requests you made. To do so, call the ``getResponse() `` method of the
357+ ``HttpBrowser `` object. This method returns the last response the browser received::
358+
359+ $browser = new HttpBrowser(HttpClient::create());
360+
361+ $browser->request('GET', 'https://foo.com');
362+ $response = $browser->getResponse();
363+
352364Learn more
353365----------
354366
You can’t perform that action at this time.
0 commit comments