req.headers().set(CONNECTION, "Upgrade");
req.headers().set(SEC_WEBSOCKET_KEY1, "4 @1 46546xW%0l 1 5");
req.headers().set(SEC_WEBSOCKET_KEY2, "12998 5 Y3 1 .P00");
req.headers().set(ORIGIN, "http://example.com");
final ByteBuf byteBuf = Unpooled.copiedBuffer("^n:ds[4U", CharsetUtil.US_ASCII);
req.content().writeBytes(byteBuf);
byteBuf.release();
} else {
req.headers().set(SEC_WEBSOCKET_KEY, "dGhlIHNhbXBsZSBub25jZQ==");
req.headers().set(SEC_WEBSOCKET_ORIGIN, "http://test.com");
req.headers().set(SEC_WEBSOCKET_VERSION, version.toHttpHeaderValue());