> > I've figured I could simply use the GET method to work, however I > > have been unable to figure out how to parse the $QUERY_STRING into a > > read-able set of variables (replace the "&"'s with "/n"'s). I've also > > tried to use "uncgi" with it, but "uncgi" does not work with sh-httpd > > (it attemps only the literal path instead of "/binary/option"). > > OK, I attempted the GET method on my Apache server and it works > great, however running the cgi on sh-httpd does not parse the > $QUERY_STRING at all. I can't find any errors in the log files. > So, either Apache passes the "=" character in the string data > (that sh-httpd doesn't), I will need to run uncgi with sh-httpd > (that hasn't worked thus far), I will need a working POST method, > or simply use thttpd (possibly in combination with uncgi as > Mosquito is doing). > > At this point the $QUERY_STRING is being passed to the CGI, > just not parsed as usable variables. It works perfectly with Apache > on a different machine with either POST or GET methods.
If your CGI works with the get method on apache, but not on sh-httpd, that's a bug I need to fix. Can you send the details of what you're trying to do? Ideally, I'd like: * The CGI script under discussion * The CGI environment when under apache (see below) * The CGI environment when under sh-httpd (see below) To grab the CGI environment, replace your existing CGI script with something like the following (test-cgi script from NCSA), and send me the results: #!/bin/sh echo Content-type: text/plain echo echo CGI/1.0 test script report: echo echo argc is $#. argv is "$*". echo echo SERVER_SOFTWARE = $SERVER_SOFTWARE echo SERVER_NAME = $SERVER_NAME echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE echo SERVER_PROTOCOL = $SERVER_PROTOCOL echo SERVER_PORT = $SERVER_PORT echo REQUEST_METHOD = $REQUEST_METHOD echo HTTP_ACCEPT = "$HTTP_ACCEPT" echo PATH_INFO = $PATH_INFO echo PATH_TRANSLATED = $PATH_TRANSLATED echo SCRIPT_NAME = $SCRIPT_NAME echo QUERY_STRING = $QUERY_STRING echo REMOTE_HOST = $REMOTE_HOST echo REMOTE_ADDR = $REMOTE_ADDR echo REMOTE_USER = $REMOTE_USER echo AUTH_TYPE = $AUTH_TYPE echo CONTENT_TYPE = $CONTENT_TYPE echo CONTENT_LENGTH = $CONTENT_LENGTH Thanks! Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
