You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Lukas Zapletal <lz...@bach.cz> on 2001/05/03 08:50:49 UTC

Re: GET attributes are not in %fdat (!LONG!)

But there is no post... the method is GET, look:

[lzap@lamed lzap]$ telnet 192.168.1.13 80
Trying 192.168.1.13...
Connected to 192.168.1.13.
Escape character is '^]'.
GET /embperl/test.html?id=aaa HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword, */*
Accept-Language: cs,en;q=0.5
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
Host: localhost

HTTP/1.1 200 OK
Date: Thu, 03 May 2001 06:46:38 GMT
Server: Apache/1.3.19 (Win32) mod_perl/1.25_01-dev PHP/4.0.5RC1
Content-Length: 1884
Connection: close
Content-Type: text/html

<html>
<body bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#FF0000"
alink="#FF0000">
QUERY_STRING = id=aaa<BR>
CONTENT_TYPE = application/x-www-form-urlencoded<BR>
HTTP_ACCEPT_LANGUAGE = cs,en;q=0.5<BR>
REMOTE_PORT = 31280<BR>
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)<BR>
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword, */*<BR>
HTTP_HOST = localhost<BR>
GATEWAY_INTERFACE = CGI-Perl/1.1<BR>
SCRIPT_NAME = /embperl/test.html<BR>
SERVER_NAME = lzap_nt.bach.cz<BR>
HTTP_ACCEPT_ENCODING = gzip, deflate<BR>
MOD_PERL = mod_perl/1.25_01-dev<BR>
CONTENT_LENGTH = 30<BR>
SCRIPT_FILENAME = d:/inetpub/wwwroot/embperl/test.html<BR>
EMBPERL_DEBUG = 3053<BR>
EMBPERL_OPTIONS = 16<BR>
PATH = D:\orant\bin;D:\Perl\bin\;D:\WINNT\system32;D:\WINNT;D:\Program
Files\Mts;d:\inetpub\php;d:\inetpub\php\dlls<BR>
EMBPERL_ESCMODE = 0<BR>
EMBPERL_OBJECT_FALLBACK = notfound.html<BR>
SYSTEMROOT = D:\WINNT<BR>
SERVER_ADDR = 192.168.1.13<BR>
EMBPERL_OBJECT_BASE = base.epl<BR>
SERVER_PROTOCOL = HTTP/1.0<BR>
SERVER_SIGNATURE = <ADDRESS>Apache/1.3.19 Server at lzap_nt.bach.cz Port
80</ADDRESS>
<BR>
COMSPEC = D:\WINNT\system32\cmd.exe<BR>
PATH_TRANSLATED = D:/inetpub/wwwroot/embperl/base.epl<BR>
WINDIR = D:\WINNT<BR>
SERVER_SOFTWARE = Apache/1.3.19 (Win32) mod_perl/1.25_01-dev
PHP/4.0.5RC1<BR>
SERVER_ADMIN = xxx@xxx.cz<BR>
REMOTE_ADDR = 192.168.1.3<BR>
EMBPERL_VIRTLOG = /embperl/log<BR>
DOCUMENT_ROOT = d:/inetpub/wwwroot<BR>
EMBPERL_LOG = D:/Program Files/Apache Group/Apache/logs/embperl.log<BR>
REQUEST_URI = /embperl/test.html?id=aaa<BR>
EMBPERL_COOKIE_NAME = TEST_ID<BR>
REQUEST_METHOD = GET<BR>
EMBPERL_MAILHOST = 192.168.1.13<BR>
SERVER_PORT = 80<BR>

There must be some bug!

lzap

>I guess you have GET & POST parameter in the same request. If there are
POST
>parameter i.e. CONTENT_LENGTH is greater zero, then Embperl the POST
>parameter takes precedence and the GET parameters are ignored. You can
write
>
>[+ $ENV{CONTENT_LENGTH} +]
>
>to see if there is any data in the request body, which causes this problem



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


Re: GET attributes are not in %fdat (!LONG!)

Posted by Gerald Richter <ri...@ecos.de>.
> There must be some bug!

The piece of code that handles form data is more or less four years old, I
don't think there is a bug, or it had come up earlier...

> But there is no post... the method is GET, look:
...
> CONTENT_LENGTH = 30<BR>

But here are 30 Bytes of data in the request body. Embperl will take this
and try to parse it and push it in %fdat.

The question is from where does this 30 bytes come ?

(The CONTENT_LENGTH environment variable is setup by Apache, not Embperl)

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



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