Does Postman support HTTP/2 requests?
Asked Answered
V

4

9

I am trying to send an HTTP/2 request using Postman. However, when my server receives the request, it gives an error:

handle: <Handle _SelectorSocketTransport._read_ready()>
Traceback (most recent call last):
  File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/usr/lib64/python3.6/asyncio/selector_events.py", line 721, in _read_ready
    self._protocol.data_received(data)
  File "/home/deesharm/jetconf/jetconf/jetconf/rest_server.py", line 76, in data_received
    events = self.conn.receive_data(data)
  File "/home/deesharm/jetconf/venv/lib/python3.6/site-packages/h2/connection.py", line 1448, in receive_data
    .. versionchanged:: 2.0.0
  File "/home/deesharm/jetconf/venv/lib/python3.6/site-packages/h2/frame_buffer.py", line 52, in add_data
    raise ProtocolError("Invalid HTTP/2 preamble.")
h2.exceptions.ProtocolError: Invalid HTTP/2 preamble.

Does Postman support HTTP/2?

Vigilance answered 23/8, 2020 at 19:25 Comment(0)
G
8

Currently, Postman doesn't support HTTP/2.

https://github.com/postmanlabs/postman-app-support/issues/2701

Gertrudgertruda answered 23/8, 2020 at 19:28 Comment(0)
P
12

As of late 2022, Postman still does not support HTTP2.

A workaround is to click the "Code" icon (looks like </> ) to generate the cURL command, add the --http2 command line flag, then copy/paste it into the terminal:

click the code icon to get the cURL script

Works well with any mac / linux terminal as well as WSL2 on Windows. You can also provide the --verbose flag to cURL to make sure HTTP2 is working as expected.

Penzance answered 31/10, 2022 at 7:56 Comment(2)
I had to include the --http2-prior-knowledge option for cURL to send an HTTP 2 request.Diapositive
It is --http2-prior-knowledge optionRufena
G
8

Currently, Postman doesn't support HTTP/2.

https://github.com/postmanlabs/postman-app-support/issues/2701

Gertrudgertruda answered 23/8, 2020 at 19:28 Comment(0)
H
4

I created a GUI tool that you can use to send HTTP requests, with support for HTTP/2 and HTTP/3. It has full compatibility with existing Postman collections and environments.

https://github.com/alexandrehtrb/Pororoca

Hexaemeron answered 21/3, 2022 at 12:18 Comment(0)
J
1

Yes, Postman supports HTTP/2 requests as of version 11.8:

You can now send requests using HTTP/2 - #2701

Open a request, go to Settings and set the HTTP version to HTTP/2. You’re all set!

Gif of Postman sending an HTTP/2 request

Pro tip: In App Settings, set the HTTP version to Auto, and you no longer have to worry about setting it for each request.

Note these limitations for 11.8, as mentioned in the linked GitHub issue (future versions may not have these limitations):

However, at the moment, HTTP/2 support is not available when:

  • Sending insecure HTTP requests
  • Sending requests using proxies

You can read more about it on how to use HTTP/2 on our Learning Center doc.

Jamikajamil answered 23/8 at 19:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.