Forum Moderators: phranque

Message Too Old, No Replies

Add request method using SCRIPT / Bug?

         

funkymusic

4:31 pm on Jun 6, 2005 (gmt 0)



Hello!

I would like to add the SEARCH method to the allowed request methods - with the SCRIPT directive it should be no problem:

[httpd.apache.org...]
"Prior to Apache 1.3.10, method can only be one of GET, POST, PUT, or DELETE. As of 1.3.10, any arbitrary method name may be used. Method names are case-sensitive, so Script PUT and Script put have two entirely different effects."

So I added the following line to my apache config to make a proof of concept:
"Script SEARCH /cgi-bin/printenv.pl"

But running the configuration test tool shows the following error:
"Syntax error on line 941 of C:/Programme/Apache Group/Apache2/conf/httpd.conf:
Unknown method type for Script"

How can I resolve this?

Best regards,

Hansjoerg Posch

jdMorgan

2:40 am on Jun 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hansjoerg,

Welcome to WebmasterWorld!

The following quote from Apache mod_cgi may give some clues:

Any file that has the mime type application/x-httpd-cgi or handler cgi-script (Apache 1.1 or later) will be treated as a CGI script, and run by the server, with its output being returned to the client. Files acquire this type either by having a name containing an extension defined by the AddType directive, or by being in a ScriptAlias directory. Files that are not in a ScriptAlias directory, but which are of type application/x-httpd-cgi by virtue of an AddType directive, will still not be executed by the server unless Options ExecCGI is enabled. See the Options directive for more details.

Jim