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 @@ -357,6 +357,18 @@ dedicated web crawler or scraper such as `Goutte`_::
357357 ``query ``. They have to be passed as the default options argument to the
358358 client which is used by the HTTP browser.
359359
360+ Dealing with HTTP responses
361+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
362+
363+ When using the BrowserKit component, you may need to deal with responses of
364+ the requests you made. To do so, call the ``getResponse() `` method of the
365+ ``HttpBrowser `` object. This method returns the last response the browser received::
366+
367+ $browser = new HttpBrowser(HttpClient::create());
368+
369+ $browser->request('GET', 'https://foo.com');
370+ $response = $browser->getResponse();
371+
360372Learn more
361373----------
362374
You can’t perform that action at this time.
0 commit comments