request.setVersion("HTTP/1.0");
return request;
}
protected HttpTester request(String method, String url, String username, String password) {
HttpTester request = new HttpTester();
request.setMethod(method);
request.setURI(url);
request.setVersion("HTTP/1.0");
BASE64Encoder enc = new sun.misc.BASE64Encoder();
String userPassword = username + ":" + password;
request.addHeader("Authorization", "Basic " + enc.encode(userPassword.getBytes()));
return request;
}