Hi Team,
Might be the query had been answered before but I tried to search and was
unscuccessful to find any reference.
Does Apache HTTPClient 5.x classic api implementation supports HTTP 2
requests?
I am trying to set request as HTTP 2 using below code but server is
throwing 400 and if use my own IIS server it is throwing 500 "Version Not
Supported” as I could see in java ssl debug in both cases it is being sent
as “GET / HTTP/2.0”. If I define my own ProtocolVersion class and override
format method in that class to send request “GET / HTTP/2” (Similar to how
browsers send) I am getting even 400 error from IIS.
final HttpGet httpget = new HttpGet("https://hc.apache.org/”);
httpget.setVersion(HttpVersion.HTTP_2);
Thanks & Regards,
Sreenivas