@Override
public IHttpRequestTask sendNextRequest(HttpContext context) throws URISyntaxException, UnsupportedEncodingException {
if (!macroItemIterator.hasNext()) {
return null;
}
IHttpMacroItem macroItem = macroItemIterator.next();
final HttpRequestBuilder builder = new HttpRequestBuilder();
macroItem.setRequestBuilder(builder, macroContext);
// hack: remove content headesr
builder.removeHeaders(HTTP.CONTENT_LEN);
builder.removeHeaders(HTTP.CONTENT_TYPE);
HttpUriRequest request = builder.buildRequest(false);
return requestEngine.sendRequest(request, context);