Questions tagged [nghttp2]

nghttp2 is a HTTP/2 C library

nghttp2 is a HTTP/2 C library. It has a full and efficient HPACK implementation. It is used by curl and many more.

86 questions
2
votes
0 answers

Cross Compile nghttp2 for Windows on Ubuntu

I am looking for the steps how to cross-compile the nghttp2 library on Ubuntu for Windows machines. On the internet I can't find any good documentation on this topic. Could anyone help me out? I already tried steps such as using cross-compile-prefix…
TVA van Hesteren
  • 1,031
  • 3
  • 20
  • 47
2
votes
2 answers

HTTP2 and continuing PHP execution

When running PHP, and you want it to immediately return HTML to the browser, close the connection (ish), and then continue processing... The following works when the connection is HTTP/1.1, but does not when using Apache 2.4.25, with mod_http2…
Craig Francis
  • 1,855
  • 3
  • 22
  • 35
2
votes
0 answers

ZLIB not find while installing nghttp2

I want to install nghttp2 for my mac os but after I run command brew install nghttp2, I face this output: Warning: You are using OS X 10.12. We do not provide support for this pre-release version. You may encounter build failures or other…
kianoosh
  • 610
  • 6
  • 22
2
votes
1 answer

Why 5 PRIORITY frames are sent from HTTP2 client before it sends a HEADERS frame ? Are they necessary for a successful HTTP2 connection?

I noticed that some HTTP2 clients (Firefox and nghttp) send 5 PRIORITY frames for stream 3, 5, 7, 9, 11 after http2 protocol is agreed and before they send a HEADERS frame. I am curious why? I know the meaning of PRIORITY frames, but I don't get the…
lifang
  • 1,485
  • 3
  • 16
  • 23
2
votes
2 answers

Connecting to Apple's APNS using cURL with HTTP\2 support via nghttp2

I've attempted to compile cURL with HTTP/2 support by following this tutorial. I'm using Docker and my application is based off the official PHP Docker image, which uses Debian, although I've produced the same problems in an Ubuntu machine running…
Mark Locker
  • 831
  • 1
  • 10
  • 19
2
votes
1 answer

when i make an http2 push, i make an request to the server?

I have a server with http2 an i have configured a push of 4 images when some client request the index.html, and it works, but i have seen on the access_log of apache that the client makes some requests of the images. Is it correct? I mean, i think…
Elo
  • 137
  • 1
  • 9
2
votes
1 answer

What is the difference between WINDOW_UPDATE and SETTINGS frames in HTTP/2 protocol?

I have read some pieces of HTTP/2 rfc7540 specification and I'm not fully understood what is the difference between WINDOW_UPDATE and SETTINGS frames in HTTP/2 protocol?
zablotski
  • 447
  • 1
  • 4
  • 11
2
votes
0 answers

nghttpx communicating via HTTP/2 results in more network traffic vs HTTP/1.1

I have this set up: [Web Site]--WAN--[Squid]---[nghttpx #2]--WAN--[nghttpx #1]---[web browser] nghttpx #1 accepts an HTTP proxy request from local web browser via HTTP/1.1, and establishes HTTP/2 connection to nghttpx #2 which requests the Web…
blackhaz
  • 21
  • 2
2
votes
2 answers

cURL is not working with nghttp2

I want to use http/2 with cURL. First I got an error when I tried this curl --http2 https://http2.akamai.com/ - "Protocol not supported". I installed nghttp2 and reinstalled cURL like it is described here. The error is gone and I can get data with…
Sven Keinath
  • 371
  • 3
  • 13
1
vote
1 answer

Boost asio certificate verification failure

I am trying to write a basic TLS client and server program using nghttp2. The code works fine when verification of peer is turned off but i get the following error when verification is switched on. error: certificate verify failed Certificates So i…
james.a
  • 11
  • 2
1
vote
0 answers

How to form a connect message in http2? (library: nghttp2, language: C)

I try to send a connection message to a server but I get a response from the server with the status 400 (Bad request). I understand from RFC that the ":scheme" and ":path" pseudo-header fields MUST be omitted, so I put in the header just :method and…
IGP
  • 37
  • 7
1
vote
1 answer

nghttp2: Using server-sent events to be use by EventSource

I'm using nghttp2 to implement a REST server which should use HTTP/2 and server-sent events (to be consumed by an EventSource in the browser). However, based on the examples it is unclear to me how to implement SSE. Using res.push() as in asio-sv.cc…
borisb
  • 13
  • 3
1
vote
1 answer

nghttp2-asio : Proper way to set content-type in header

I came up with this code, but not sure if it is right usage: boost::system::error_code ec; nghttp2::asio_http2::header_map headers; headers.insert(std::pair("content-type",…
atari83
  • 489
  • 1
  • 5
  • 15
1
vote
0 answers

How to keep sending retry requests using nghttp2

I just started using the libnghttp2_asio library and ran the example client and server mentioned at this link. However, I am unable to connect to the server after an initial failure despite sending subsequent requests, i.e, I would like to know how…
Jitesh Malipeddi
  • 2,150
  • 3
  • 17
  • 37
1
vote
1 answer

Send multiple HTTP2.0 request

How can I send multiple HTTP2.0 request on a single SSL connection ? I tried the following and HTTP1.1 works fine , but HTTP2.0 fails. $ openssl s_client -alpn h2 -connect navaztheking.com:443 CONNECTED(00000003) depth=4 C = US, O = "Starfield…
navaz
  • 125
  • 1
  • 2
  • 15