- Add
toArray
method toResponse
- Added
jsonRequest
method toAbstractBrowser
- Allowed sending a body with GET requests when a content-type is defined
- [BC BREAK] Request parameters are now casted to string in
Request::__construct()
.
- Added PHPUnit constraints:
BrowserCookieValueSame
andBrowserHasCookie
- Added
HttpBrowser
, an implementation of a browser with the HttpClient component - Renamed
Client
toAbstractBrowser
- Marked
Response
final. - Deprecated
Response::buildHeader()
- Deprecated
Response::getStatus()
, useResponse::getStatusCode()
instead
- The method
Client::submit()
will have a new$serverParameters
argument in version 5.0, not defining it is deprecated - Added ability to read the "samesite" attribute of cookies using
Cookie::getSameSite()
- [BC BREAK] Client will skip redirects during history navigation (back and forward calls) according to W3C Browsers recommendation
- [BC BREAK] The request method is dropped from POST to GET when the response status code is 301.
- Client HTTP user agent has been changed to 'Symfony BrowserKit'
-
[BC BREAK]
Client::followRedirect()
won't redirect responses with a non-3xx Status Code andLocation
header anymore, as per http://tools.ietf.org/html/rfc2616#section-14.30 -
added
Client::getInternalRequest()
andClient::getInternalResponse()
to have access to the BrowserKit internal request and response objects
- [BC BREAK] The CookieJar internals have changed to allow cookies with the same name on different sub-domains/sub-paths