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);
}
@Override
public IHttpRequestTask sendNextRequest() throws URISyntaxException, UnsupportedEncodingException {