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


   1:                 request.getRequestLine().getHttpVersion(),
   2:                 HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED);
   3:         if (!request.getRequestLine().getMethod().equalsIgnoreCase("HEAD")) {
   4:             response.setBodyString("unauthorized");
   5:         }

View Full Code Here