Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

surajjd's avatar

How to make HTTP2 request from Laravel HTTP client

Hello, I am integrating the Laravel application with other PHP Applications. In a particular Task, I have to make post Request to that application. If I make a request with Payload and Headers from insomnia and postman I could able to create resources on a third-party application. But If I Try from the Laravel Http client it gives me an error. Within the NginX log, I could find out that Insomnia and postman are making http2 requests. where Laravel HTTP client is making HTTP 1.1 requests. How Can I make sure that Laravel HTTP Client Make HTTP 2 Request?

0 likes
1 reply
Sinnbeck's avatar

I dont have anything to test against, but can you try setting the version in guzzle?

Http::withOptions([
    'version' => 2,
])
2 likes

Please or to participate in this conversation.