cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP 2.0 and GFE/2.0

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Mon, 31 Mar 2014 14:16:15 +0200

"Daniel Stenberg" <daniel_at_haxx.se> wrote:

> I get a different server but I did this:
>
> ./src/curl -v --http2 https://www.google.com
>
> * Trying 173.194.32.20...
> * Connected to www.google.com (173.194.32.20) port 443 (#0)
> * NPN, negotiated HTTP2
> * We have switched to HTTP2
> * http2_send len=82
> * before_frame_send() was called
> * on_frame_send() was called
> * before_frame_send() was called

This is with OpenSSL? With PolarSSL, I get no switch to HTTP2.
But building libcurl (MSVC) with OpenSSL once again, I see:

< HTTP/2.0 400
< :version:HTTP/1.0
< content-length:1419
< content-type:text/html; charset=UTF-8
< date:Mon, 31 Mar 2014 12:08:17 GMT
* Server GFE/2.0 is not blacklisted
< server:GFE/2.0

And get this error back:

* nread=120
* on_data_chunk_recv() len = 120, stream = 1
* 120 data written
* on_frame_recv() was called with header 0
* on_stream_close() was called, error_code = 0
* nghttp2_session_mem_recv() returns 120
>ThatÔÇÖs an error.</ins>
  <p>Your client has issued a malformed or illegal request. <ins>ThatÔÇÖs all we know.</ins>
* nread <= 0, server closed connection, bailing
* STATE: PERFORM => DONE handle 0xb91648; line 1587 (connection #0)
* Connection #0 to host www.google.com left intact
* Expire cleared

-----

 Note the ASCII garbage after "That".

--gv

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-31