I am curious why NPH support is so difficult to implement in CgiServlet? In CgiServlet.CgiRunner, there are lines of code commented out
if (line.startsWith("HTTP")) { //TODO: should set status codes (NPH support) /* * response.setStatus(getStatusCode(line)); */ } I definitely need setStatus because most of my legacy scripts using 302 redirect. Without NPH support, my reponse header is HTTP/1.1 200 OK ... Status: 302... only blank page will display. Is is OK that I simply add a conditional check, i.e. if line contains HTTP/1.1 302 then setStatus(302)? Regards, PQ