Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support HTTP/2 requests #997

Closed
aldaris opened this issue Jun 22, 2018 · 11 comments
Closed

[Feature Request] Support HTTP/2 requests #997

aldaris opened this issue Jun 22, 2018 · 11 comments

Comments

@aldaris
Copy link
Contributor

aldaris commented Jun 22, 2018

  • 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.

@welcome
Copy link

welcome bot commented Jun 22, 2018

👋 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.

@gschier
Copy link
Contributor

gschier commented Jun 22, 2018

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 👍

@WingGithub
Copy link

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.

@gschier
Copy link
Contributor

gschier commented Nov 12, 2018

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

@FallingSnow
Copy link

@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

@WingGithub
Copy link

WingGithub commented Apr 2, 2019

@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

@FallingSnow
Copy link

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.

@FallingSnow
Copy link

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!

@alexblack
Copy link

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

@crystalfp
Copy link

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

@develohpanda
Copy link
Contributor

develohpanda commented Jul 30, 2020

Looks like the issue was left open, but Insomnia does support HTTP/2 now 🎉 🎉 merged with #2276, released in 2020.3.3.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants