Skip to content

[HttpClient] Allow using HTTP/3 with the CurlHttpClient#59370

Merged
nicolas-grekas merged 1 commit intosymfony:7.3from
MatTheCat:ticket_58331
Jan 7, 2025
Merged

[HttpClient] Allow using HTTP/3 with the CurlHttpClient#59370
nicolas-grekas merged 1 commit intosymfony:7.3from
MatTheCat:ticket_58331

Conversation

@MatTheCat
Copy link
Copy Markdown
Contributor

@MatTheCat MatTheCat commented Jan 6, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #58331
License MIT

Now that PHP 8.4 is out, one can configure curl to use CURL_HTTP_VERSION_3 (php/php-src#15350).

Since curl HTTP/3 support is still experimental the http_version will have to be set to 3 to use this functionality, mimicking the CLI --http3 flag (meaning curl can fallback to HTTP/2 or HTTP/1.1).

@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit fa602c7 into symfony:7.3 Jan 7, 2025
@MatTheCat MatTheCat deleted the ticket_58331 branch January 7, 2025 10:53
@fabpot fabpot mentioned this pull request May 2, 2025
nicolas-grekas added a commit that referenced this pull request Jan 22, 2026
This PR was merged into the 7.3 branch.

Discussion
----------

[HttpClient] Skip HTTP/3 when using a proxy

| Q             | A
| ------------- | ---
| Branch?       | 7.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

We enabled enabling HTTP/3 in #59370
But I also just learned about composer/composer#12699

I think we should do the same. HTTP/3 + proxies are not yet there, let's play safe.

Commits
-------

44e6ee7 [HttpClient] Skip HTTP/3 when using a proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HttpClient] Add support for HTTP/3

3 participants