[Asterisk-Users] RE: No Files Seen via vmail.cgi
Sean Cook
scook at kinex.net
Thu Dec 2 16:17:57 MST 2004
Ok you have a problem... query string should not be blank... There is a
problem either with your apache config or with your browser. Your
REQUEST_METHOD is POST but you aren't passing any of the CGI env...
Sean
Keith O'Brien wrote:
> I get the following. Thanks for your help.
>
>
>
>
>
> SCRIPT_NAME = /cgi-bin/vmail.cgi
> SERVER_NAME = 10.1.1.9
> HTTP_REFERER = http://10.1.1.9/cgi-bin/vmail.cgi
> SERVER_ADMIN = root at localhost
> HTTP_ACCEPT_ENCODING = gzip, deflate
> HTTP_CONNECTION = Keep-Alive
> REQUEST_METHOD = POST
> CONTENT_LENGTH = 57
> HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */*
> SCRIPT_FILENAME = /var/www/cgi-bin/vmail.cgi
> SERVER_SOFTWARE = Apache/2.0.40 (Red Hat Linux)
> QUERY_STRING =
> REMOTE_PORT = 4126
> HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
> SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
> SERVER_PORT = 80
> SERVER_SIGNATURE =
>
> /Apache/2.0.40 Server at 10.1.1.9 Port 80/
>
>
> HTTP_CACHE_CONTROL = no-cache
> HTTP_ACCEPT_LANGUAGE = en-us
> HTTP_COOKIE = format=WAV
> REMOTE_ADDR = 10.1.1.74
> CONTENT_TYPE = application/x-www-form-urlencoded
> SERVER_PROTOCOL = HTTP/1.1
> PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
> REQUEST_URI = /cgi-bin/vmail.cgi
> GATEWAY_INTERFACE = CGI/1.1
> SERVER_ADDR = 10.1.1.9
> DOCUMENT_ROOT = /var/www/html
> HTTP_HOST = 10.1.1.9
> UNIQUE_ID = F1Jvon8AAAEAABEqB5sAAAAG
>
>
>
>
>
> Message: 3
>
> Date: Thu, 02 Dec 2004 16:32:14 -0500
>
> From: Sean Cook <scook at kinex.net>
>
> Subject: Re: [Asterisk-Users] RE: No Files Seen via vmail.cgi
>
> To: Asterisk Users Mailing List - Non-Commercial Discussion
>
> <asterisk-users at lists.digium.com>
>
> Message-ID: <1102023134.4776.25.camel at sean.benchmark-systems.com>
>
> Content-Type: text/plain
>
>
>
> Actually, put this at the end of the file...
>
>
>
>
>
> foreach $key (keys %ENV){
>
> print qq{$key = $ENV{$key}<br>\n};
>
> }
>
>
>
>
>
> this is dumping the environment variable from the cgi environment.
> You should see 'changefolder' with some value set (look at the
> QUERY_STRING).
>
>
>
> Sean
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list