cURL / Mailing Lists / curl-library / Single Mail


HTTP 2.0 selects forever

From: Gisle Vanem <>
Date: Wed, 25 Sep 2013 14:34:12 +0200

I'm having some success with HTTP 2.0 using the NgHTTP2 test server . I don't suppose there are other HTTP 2.0 servers
I can test with?

The problem is some extra garbage in the start and end of output. Using this
  curl --http2.0

Gives this in the beginning (before the "<!DOCTYPE"):

 ┴☺♦ ☺ÇB☺0E text/htmlF↔Wed, 25 Sep 2013 12:14:27 GMTG→"179b1-19b0-4e657336a7280"I↔Sat, 14 Sep 2013
12:35:06 GMTJ▬Apache/2.2.22 (Ubuntu)L☼Accept-EncodingM↑1.1 varnish, 1.1 nghttpx@ x-varnish
215791734♫╝ ☺

And at the end:

      Created using Sphinx 1.1.3.
</html> ☺ ☺

Some junk at the end too.

Another thing, using a Winsock-tracer lib I can see libcurl is still waiting on
more data on recv-socket:

 * g:\mingw32\src\inet\curl\lib\select.c(466) (Curl_poll+584):
    select (n=1525, rd, wr, ex, {tv=1.000000s}) --> No error.
      fd_input -> rd: 1524
      fd_output -> rd:


I can see the "Switching Protocols" and "Upgrade: HTTP/2.0" in the response.
But no "Content-Length:". How is libcurl supposed to know when to stop receiving?

I'm using MSVC on Win-XP SP3.


List admin:
Received on 2013-09-25