This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpClient
Fabien Potencier 0219834a2d bug #32141 [HttpClient] fix dealing with 1xx informational responses (nicolas-grekas)
This PR was merged into the 4.3 branch.

Discussion
----------

[HttpClient] fix dealing with 1xx informational responses

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

I never had a look at 1xx status codes until today.
This PR fixes reading them when using curl.

If one wonders:
- `NativeHttpClient` uses `fopen()`, which skips informational parts as allowed by the HTTP spec and doesn't give any way to access their response headers.
- `CurlHttpClient` allows reading informational responses using the progress callback or via the getInfo() method. That's the way if you need to implement e.g. HTTP 103 early hints.

Commits
-------

412411d795 [HttpClient] fix dealing with 1xx informational responses
2019-06-26 09:29:23 +02:00
..
Chunk [HttpClient] Remove unused local variable 2019-03-28 10:31:46 +01:00
Exception [HttpClient] throw DecodingExceptionInterface when toArray() fails because of content-type error 2019-06-16 20:17:37 +02:00
Internal Document the state object that is passed around by the HttpClient. 2019-04-10 13:03:42 +02:00
Response bug #32141 [HttpClient] fix dealing with 1xx informational responses (nicolas-grekas) 2019-06-26 09:29:23 +02:00
Tests fixed CS 2019-06-13 13:03:18 +02:00
CachingHttpClient.php fixed CS 2019-06-13 13:03:18 +02:00
CHANGELOG.md [HttpClient] introduce the component 2019-03-07 17:16:39 +01:00
composer.json [HttpClient] throw DecodingExceptionInterface when toArray() fails because of content-type error 2019-06-16 20:17:37 +02:00
CurlHttpClient.php fixed CS 2019-06-13 13:03:18 +02:00
HttpClient.php [HttpClient] Don't use CurlHttpClient on Windows when curl.cainfo is not set 2019-06-13 14:16:31 +02:00
HttpClientTrait.php fixed CS 2019-06-13 13:03:18 +02:00
HttpOptions.php [HttpClient] Add tests - update code style nits. 2019-04-09 11:46:29 +02:00
LICENSE [HttpClient] introduce the component 2019-03-07 17:16:39 +01:00
MockHttpClient.php fixed CS 2019-06-13 13:03:18 +02:00
NativeHttpClient.php [HttpClient] fix timing measurements with NativeHttpClient 2019-06-24 10:59:29 +02:00
phpunit.xml.dist [HttpClient] introduce the component 2019-03-07 17:16:39 +01:00
Psr18Client.php [HttpClient] fix Psr18Client handling of non-200 response codes 2019-06-10 19:33:33 +02:00
README.md Merge branch '4.2' 2019-03-12 19:57:21 +01:00
ScopingHttpClient.php [HttpClient] add missing argument check 2019-05-19 11:37:13 -03:00

HttpClient component

The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.

This Component is experimental. Experimental features are not covered by Symfony's Backward Compatibility Promise.

Resources