You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/11/07 16:30:34 UTC
DO NOT REPLY [Bug 24501] New: -
NPH script (perl/mod_perl)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24501>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24501
NPH script (perl/mod_perl)
Summary: NPH script (perl/mod_perl)
Product: Apache httpd-2.0
Version: 2.0.47
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: gulli@di.unipi.it
It seems that nph doesn't work. Example
http://roquefort.di.unipi.it/cgi-bin/nph-test-CGI.pl
<code>
#!/usr/bin/perl
use CGI qw/:standard/;
$|=1; print header();
for (1..20){ print "The current time is ",scalar(localtime),"<BR>\n"; sleep 1; }
</code>
The strange thing is that this work
http://roquefort.di.unipi.it/cgi-bin/nph-test-CGI.pl.txt
Same code as above !
Another example:
http://roquefort.di.unipi.it/cgi-bin/nph-test-raw-print.pl
<code>
#!/usr/bin/perl
print "HTTP/1.0 200 OK\r\n" if $0 =~ /nph-/;
print join("\r\n",
'Content-type: text/html' . (defined $charset ? "; charset=$charset" :
''),
'Pragma: no-cache',
'Cache-control: must-revalidate, no-cache, no-store',
'Expires: -1',
"\r\n");
for (1..20){ print "The current time is ",scalar(localtime),"<BR>\n"; sleep 1;
</code>
And this doesn't work.
http://roquefort.di.unipi.it/cgi-bin/nph-test-raw-print.pl.txt
Am i wrong ?
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org