httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan van den Berg" <jan.vandenb...@isp.solcon.nl>
Subject RE: [users@httpd] CGI script with & without dash in name on Apache 2.0.55
Date Wed, 15 Feb 2006 11:36:39 GMT
Great! 
So that is the answer. Is there also a solution; disabling this function ie or going around
it?

Thanks,

Jan


-----Oorspronkelijk bericht-----
Van: André Malo [mailto:nd@perlig.de] 
Verzonden: woensdag 15 februari 2006 12:12
Aan: users@httpd.apache.org
Onderwerp: Re: [users@httpd] CGI script with & without dash in name on Apache 2.0.55

* "Jan van den Berg" <jan.vandenberg@isp.solcon.nl> wrote:

> www.site.com/cgi-bin/nph?width=5&link=http://www.hitsite.com
> 
> This runs perfectly. However when I rename the program from 'nph' ->
> 'nph-hits' (same UID/GID and system rights) and I run it my browser asks
> what to do with the file ("octet-stream save as/open with")?!?! So like
> this:
> 
> www.site.com/cgi-bin/nph-hits?width=5&link=http://www.hitsite.com
> 
> The content of the script and all the rights are exactly the same?!
> However Apache seems to be handling it differently. I am running Apache
> 2.0.55 with just plain perl 5.8.4 (no mod_perl).

mod_cgi has a feature called 'nph-scripts'. All output from scripts named
'nph-*' is not parsed according to the CGI/HTTP rules, but passed directly to
the browser. nph stands for 'no parsed header'.

Yes, this feature is badly documented and kind of a legacy one.

nd

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message