String queryString = httpContext.getRequest().getUri().getQuery();
if (queryString != null) {
cgiProcessBuilder.environment().put("QUERY_STRING", queryString);
}
IHttpHeader requestHeader = httpContext.getRequest().getHeaders().getHeader("Content-Length");
if (requestHeader != null) {
ContentLengthHttpHeader contentLengthRequestHeader = (ContentLengthHttpHeader)requestHeader;
cgiProcessBuilder.environment().put("CONTENT_LENGTH", String.valueOf(contentLengthRequestHeader.getValue()));
}