tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Qin <Phillip....@shareowner.com>
Subject Tomcat cgi NPH support
Date Tue, 28 Sep 2004 16:45:55 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message