6

im trying to use HTTP/1.0 with Apache HttpClient 4.3, but I can't find out how. In 3.x version it was done this way:

httpClient.getParams().setParameter("http.protocol.version", HttpVersion.HTTP_1_0);

Thats deprecated by now. How to do it now? Thank you.

JuSch
  • 73
  • 1
  • 3

1 Answers1

11
HttpGet request = new HttpGet("/stuff");
request.setProtocolVersion(HttpVersion.HTTP_1_0);
ok2c
  • 26,450
  • 5
  • 63
  • 71