Has this issue ever been resolved?

I'm having a similar problem trying to use microperl and boa.

Below is a simple cgi program to print out the environment.  When run, it returns no environment info!

#!/usr/bin/microperl
print ("HTTP/1.1 200 OK\n");
print ("Content-type: text/html \n\n");
print ("<HTML>\n");
print ("<HEAD> <TITLE> Environment </TITLE> </HEAD>\n");
print ("Document Root: $ENV{'DOCUMENT ROOT'}\n");
print ("<BODY> <BLOCKQUOTE> <TABLE BORDER = 1> \n");
foreach (sort keys %ENV) {
    print ("\t<TR> $_ </TD> <TD> $ENV{$_} </TD> </TR>\n");
}
print ("</TABLE> </BLOCKQUOTE> </BODY>\n");
print ("</HTML>\n");

Thanks much!

Steve


On 7/28/06, Craig Hughes <craig@gumstix.com> wrote:
Using a shell-script CGI under boa which just calls "env", I get:

craig@azazel ~ $ curl http://10.0.240.156/cgi-bin/env?somefoo=blah

GATEWAY_INTERFACE=CGI/1.1
REMOTE_ADDR=10.0.240.5
QUERY_STRING=somefoo=blah
REMOTE_PORT=49770
HTTP_USER_AGENT=curl/7.15.1 (x86_64-pc-linux-gnu) libcurl/7.15.1
OpenSSL/0.9.7j zlib/1.2.3 libidn/0.5.15
HTTP_HOST=10.0.240.156
REQUEST_URI=/cgi-bin/env
SERVER_SOFTWARE=Boa/0.94.14rc20
PATH=/bin:/usr/bin:/usr/local/bin
SERVER_PROTOCOL=HTTP/1.1
REQUEST_METHOD=GET
SERVER_ADDR= 10.0.240.156
SERVER_ADMIN=
PWD=/var/www/cgi-bin
SERVER_PORT=0
SCRIPT_NAME=/cgi-bin/env
SERVER_NAME=

That's a somewhat older version of boa than the current buildroot one
though -- I don't have a recent rootfs gumstix hanging off the
network right now to test though...

C

On Jul 28, 2006, at 11:09 AM, Dan Taylor wrote:

> Hi all,
>
> My CGIs (written in C++) don't seem to have access to the various
> standard environment variables...
>
>       getenv("QUERY_STRING");
>
>       getenv("SERVER_NAME");
>
> ...both fail.
>
> Has anyone got any idea why this might be or how I can fix the
> problem?
>
> Cheers,
>
> Dan
>
> --
> Dan Taylor BSc MIET
>
> Software Development Engineer
> PhD Student, Heriot Watt University, UK
>
> http://www.logicalgenetics.com
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net 's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php ?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users