* If we are trying to spoof https, change the protocol
*/
if (httpsSpoof) {
sampler.setProtocol("https");
}
sampler.threadStarted(); // Needed for HTTPSampler2
result = sampler.sample();
/*
* If we're dealing with text data, and if we're spoofing https,
* replace all occurences of "https" with "http" for the client.