boolean isCachable = false;
try {
byte[] clientRequest = request.parse(new BufferedInputStream(
ClientSocket.getInputStream()));
HTTPSampler sampler = request.getSampler();
HeaderManager headers = request.getHeaderManager();
sampler.setHeaderManager(headers);
byte[] serverResponse = sampler.sample().getResponseData();
writeToClient(serverResponse,
new BufferedOutputStream(ClientSocket.getOutputStream()));
headers.removeHeaderNamed("cookie");
target.deliverSampler(sampler,new TestElement[]{headers},serverResponse);
} catch (UnknownHostException uhe) {
log.warn("Server Not Found.",uhe);
try {
DataOutputStream out = new DataOutputStream(ClientSocket.getOutputStream());