perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Kumar Mallah <mal...@trade-india.com>
Subject Can anyone check this...
Date Tue, 25 Mar 2003 13:57:49 GMT

Looks like a possible bug to me:

consider this simple embperl file


--------------- test.epl ---------------------------
[-
        print STDERR Data::Dumper->Dump([\%fdat]);
-]

<form method="POST" ENCTYPE="multipart/form-data">
<input type="text" name="t1">
<input type="text" name="t2">
<input type="submit">
</form>

-------------- end -----------------------------

on submitting the form empty %fdat is still setup

$VAR1 = {
          't2' => '',
          't1' => ''
        };

comes in the apache error log

On removing  ENCTYPE="multipart/form-data" from
the form tag it behaves fine ie. the keys t2 , t1
are removed. 

Note that nothing like described below has been done 
in current config.

       optAllFormData = 8192
           This option will cause Embperl to insert all form
           fields in %fdat and @ffld, even if they are empty.
           Empty formfields will be inserted with an empty
           string. Without this option, empty formfields will be
           absent from %fdat and @ffld.

the ENV details are below.
in short Embperl 1.3.6 and Apache 1.3.27 and perl 5.8.1

$VAR1 = {
          'EMBPERL_DEBUG' => '0',
          'SCRIPT_NAME' => '/dyn/gdh/env.epl',
          'REQUEST_METHOD' => 'GET',
          'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,
				image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1',
          'SCRIPT_FILENAME' => '/usr/local/perlapache/htdocs/dyn/gdh/env.epl',
          'EMBPERL_SESSION_ARGS' => 'Directory=/tmp/sessions',
          'REMOTE_PORT' => '54564',
          'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120
Netscape/7.01',
          'SERVER_SIGNATURE' => '<ADDRESS>Apache/1.3.27 Server at 66.234.10.14 Port
8081</ADDRESS>
',
          'HTTP_ACCEPT_LANGUAGE' => 'en-us, en;q=0.50',
          'PATH' => '/bin:/usr/bin',
          'GATEWAY_INTERFACE' => 'CGI-Perl/1.1',
          'HTTP_X_FORWARDED_SERVER' => 'www.trade-india.com',
          'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1, utf-8;q=0.66, *;q=0.66',
          'EMBPERL_SESSION_CLASSES' => 'File Null',
          'SERVER_PORT' => '8081',
          'HTTP_COOKIE' => 'INF_AWER_6786876_UTTFES__QWGGGGF=c2616c27e9745a1159177ac42e298131;

				Clickstream=203.196.129.235.13441048600361629',
          'SERVER_PROTOCOL' => 'HTTP/1.1',
          'HTTP_X_FORWARDED_HOST' => 'www.trade-india.com',
          'REQUEST_URI' => '/dyn/gdh/env.epl',
          'SERVER_ADDR' => '66.234.10.14',
          'HTTP_HOST' => '66.234.10.14:8081',
          'EMBPERL_OPTIONS' => '16',
          'SERVER_SOFTWARE' => 'Apache/1.3.27 (Unix) mod_perl/1.27',
          'QUERY_STRING' => '',
          'HTTP_CACHE_CONTROL' => 'max-age=259200',
          'EMBPERL_COOKIE_PATH' => '/',
          'DOCUMENT_ROOT' => '/usr/local/perlapache/htdocs',
          'HTTP_VIA' => '1.1 internal.trade-india.com:3128 (Squid/2.4.STABLE7)',
          'PATH_TRANSLATED' => '/usr/local/perlapache/htdocs/dyn/gdh/env.epl',
          'SERVER_NAME' => '66.234.10.14',
          'HTTP_X_HOST' => 'www.trade-india.com',
          'SERVER_ADMIN' => 'root@trade-india.com',
          'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, compress;q=0.9',
          'HTTP_CONNECTION' => 'close',
          'TZ' => 'Asia/Calcutta',
          'REMOTE_ADDR' => '66.234.10.14',
          'HTTP_X_SERVER_HOSTNAME' => 'www.trade-india.com',
          'HTTP_X_FORWARDED_FOR' => '192.168.0.67, 203.196.129.235, 203.196.129.235',
          'EMBPERL_COOKIE_NAME' => 'INF_AWER_6786876_UTTFES__QWGGGGF',
          'MOD_PERL' => 'mod_perl/1.27'
        };




-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message