cURL / Mailing Lists / curl-library / Single Mail

curl-library

REFUSED_STREAM for http/2 POST to nginx

From: Jeroen Ooms <jeroen.ooms_at_stat.ucla.edu>
Date: Wed, 28 Sep 2016 11:41:31 +0200

We are working on a new API based on express.js behind nginx.
Everything works for HTTP1, but for (lib)curl client which are built
with-nghttp2 any POST request fails with CURLE_HTTP2_STREAM.

Below a reproducible example that fails with libcurl 7.50.3 (--with-nghttp2)

  curl -v https://builder.r-hub.io/api/check/validate_email \
    -H 'Content-Type: application/json' \
    -d '{"email":"somebody_at_gmail.com"}'

Example output: https://git.io/vPfIS . Is this a bug in libcurl or a
nginx config problem?
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-09-28