Hi Simone,
Sorry for my bad expression. I just concerned the HTTP/1.1 upgrade.
I did some tests with curl for my Jetty server (9.3.8 with h2 and h2c
support).

1. curl -v --http2 http://host:port
The test worked, and the upgrade was successful.

2. curl -v --http2 -d "body" http://host:port
The test didn't work, and the upgrade was failed.

3. curl -v --http2 -d "body" https://host:sslport
Absolutely, the test worked on ALPN.

I just want to confirm this point.
Why does Jetty implement the upgrade in that way?
It seems that HTTP/2 spec doesn't indicate the upgrade with request body is
illegal.

Thanks!

2016-05-01 23:48 GMT+08:00 Simone Bordet <[email protected]>:

> Hi,
>
> On Sun, May 1, 2016 at 5:36 PM, John Jiang <[email protected]>
> wrote:
> > Hi,
> > I'm using standalone Jetty 9.3.8.
> > It looks that the plaintext HTTP/2 doesn't support request body.
>
> Sure it does.
>
> > If a request includes body, the upgrade will fail.
>
> Upgrades cannot have a request body.
>
> Perhaps it is better if you explain what you are trying to do.
>
> The fact that you are mixing HTTP/1.1 upgrade and cleartext HTTP/2
> makes me think you are way offroad, but unfortunately you don't say
> what you're doing, so cannot help much.
>
> --
> Simone Bordet
> ----
> http://cometd.org
> http://webtide.com
> Developer advice, training, services and support
> from the Jetty & CometD experts.
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to