Insomnia: [Feature Request] Support HTTP/2 requests

Created on 22 Jun 2018  路  11Comments  路  Source: Kong/insomnia

  • Insomnia Version: 5.16.6 (5.16.6.2073)
  • Operating System: OSX

Details

Currently when Insomnia makes its requests to an HTTPS enabled site, it only uses HTTP/1.1. It would be great if Insomnia would utilize HTTP/2 requests via ALPN.

accepted

All 11 comments

馃憢 Thanks for opening your first issue! If you're reporting a 馃悶 bug, please make sure
you include steps to reproduce it. If you're requesting a feature 馃巵, please provide real
use cases that would benefit. 馃應

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

This _should_ be easy to add, except the node-libcurl project doesn't look like it is built with HTTP/2 compatibility when targeting Windows. See https://github.com/peters/curl-for-windows

I still think this will be good to have eventually 馃憤

I hope someone is working on this. http2 adoption is getting pretty high and this is a blocking issue for us. I have to disable http2 in our development server and I can't recommend this tool to devOps if it won't work on production.

Just a note: Support for HTTP/2 is already included in the OSX and Linux versions of Insomnia, since they are linked with the nghttp2 library.

I think the only thing that needs to be done is to allow the user to supply the CURLOPT_HTTP_VERSION option

@gschier HTTP/2 does not appear to be working for me.

$ uname -a
Linux laptop 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux

When using the firefox extension RESTClient it works as expected.
Screenshot from 2019-04-01 16-08-33

However Insomnia is another story. It reacts the same way as Postman.

Screenshot from 2019-04-01 16-08-18

Screenshot from 2019-04-01 16-10-12

@FallingSnow , there may be some other issue in your use case. Postman works with HTTP2 and the error message I get when I try to use insomnia with http2 looks like this: Error: SSL connect error.

Oops, my bad look like Postman is not using http2, it was falling back to http/1.1

Correct, postman also has an issue open for using http2.

It looks like the error you're receiving with Insomnia has to do with SSL rather than HTTP2.

Good news. The develop branch does in fact support HTTP2 on at least Linux. I just followed the develop instructions to compile and start the app and bingo, it worked!

Any update on this? Does Insomnia support HTTP2 now on OSX?

Insomnia is based on libcurl on Windows, correct? So it should be able to access HTTP/2 servers as I do with curl that sets --http2 by default:

"C:\apps\curl\bin\curl.exe" \
--cacert "D:/server/cert/localhost-cert.pem" \
-H "Content-Type: application/json" \
https://localhost:3111/api/project

Hope it helps
mario

Looks like the issue was left open, but Insomnia does support HTTP/2 now 馃帀 馃帀 merged with https://github.com/Kong/insomnia/pull/2276, released in 2020.3.3.

image

Was this page helpful?
0 / 5 - 0 ratings