Demos and Usage of org.apache.commons.httpclient.HttpStatus.HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED


   1:                     SimpleResponse response = new SimpleResponse();
   2:                     response.setStatusLine(ver, HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED);
   3:                     response.addHeader(new Header("Proxy-Connection", "close"));
   4:         ...
   5:             assertNotNull(httpget.getStatusLine());
   6:             assertEquals(HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED, 
   7:                     httpget.getStatusLine().getStatusCode());
   8:         ...
   9:             assertNotNull(httpget.getStatusLine());
  10:             assertEquals(HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED, 
  11:                     httpget.getStatusLine().getStatusCode());

View Full Code Here