Hi

I just had a play around with the new draft HTTP2 support in
Curl/libcurl.  For the most part it works great, however Google's
web server GFE/2.0 does not seem to like it when attempting to connect
over a non-secure connection.  This is easily reproduced with the
following command, which produces the output attached: curl -v --http2
http://www.google.co.uk

As you can see, GFE returns HTTP error 400.  When connecting over a
secure connection, however, it works as expected.

I assume this is because Google isn't up-to-date with the latest draft
spec?  Can anything be done with libcurl to workaround the error?  If
it was just Google it wouldn't be a problem, but
http://www.blogspot.co.uk uses the same server software and there's no
secure alternative on that.

Regards
Chris
* Rebuilt URL to: http://www.google.co.uk/
* Hostname was NOT found in DNS cache
*   Trying 173.194.41.159...
* Connected to www.google.co.uk (173.194.41.159) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.36.0
> Host: www.google.co.uk
> Accept: */*
> Connection: Upgrade, HTTP2-Settings
> Upgrade: HTTP-draft-09/2.0
> HTTP2-Settings: AAAABAAAAGQAAAAHAAD//w==
> 
< HTTP/1.1 400 Bad Request
< Content-Type: text/html; charset=UTF-8
< Content-Length: 1419
< Date: Fri, 28 Mar 2014 20:14:08 GMT
* Server GFE/2.0 is not blacklisted
< Server: GFE/2.0
< Alternate-Protocol: 80:quic
< 
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, 
width=device-width">
  <title>Error 400 (Bad Request)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px 
arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% 
auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > 
body{background:url(//www.google.com/images/errors/robot.png) 100% 5px 
no-repeat;padding-right:205px}p{margin:11px 0 
22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media 
screen and 
(max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/errors/logo_sm_2.png)
 no-repeat}@media only screen and 
(min-resolution:192dpi){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png)
 no-repeat 0% 0%/100% 
100%;-moz-border-image:url(//www.google.com/images/errors/logo_sm_2_hr.png) 
0}}@media only screen and 
(-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png)
 no-repeat;-webkit-background-size:100% 
100%}}#logo{display:inline-block;height:55px;w!
 idth:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>400.</b> <ins>That’s an error.</ins>
  <p>Your client has issued a malformed or illegal request.  <ins>That’s all 
we know.</ins>
* Connection #0 to host www.google.co.uk left intact
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to