IHttpHeaders responseHeaders = httpHeadersParser.parse(cgiProcess.getInputStream());
for (IHttpHeader responseHeader : responseHeaders) {
httpContext.getResponse().getHeaders().addHeader(responseHeader);
}
IHttpResponseWriter httpResponseWriter = new HttpResponseWriter(httpContext.getResponse().getOutputStream());
httpResponseWriter.writeResponse(httpContext.getResponse());
BufferedInputStream bis = new BufferedInputStream(cgiProcess.getInputStream());
byte[] buffer = new byte[4096];
int bytesRead = -1;
try {