You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by suisou <55...@qq.com> on 2020/02/07 00:23:20 UTC
the demo code can't run normally in apache 2.4.
hi,all.
I am a fresh .
my server version
Server version: Apache/2.4.37 (centos)
Server built: Dec 23 2019 20:45:34.
httpd.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
httpd-devel.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
httpd-filesystem.noarch 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
httpd-tools.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
apr.x86_64 1.6.3-9.el8 @AppStream
apr-devel.x86_64 1.6.3-9.el8 @AppStream
apr-util.x86_64 1.6.1-6.el8 @AppStream
apr-util-bdb.x86_64 1.6.1-6.el8 @AppStream
apr-util-devel.x86_64 1.6.1-6.el8 @AppStream
apr-util-openssl.x86_64 1.6.1-6.el8 @AppStream
audit.x86_64 3.0-0.10.20180831git0047a6c.el8 @anaconda
the code in chapter
Retrieve variables from POST form data
from http://httpd.apache.org/docs/current/en/developer/modguide.html can't get the right respone.
i CHECK it step by step ,and found that
this row not work .
kvp[i].key = apr_pstrdup(r->pool, pair->name);
Is this a bug?
thanks.
Re: the demo code can't run normally in apache 2.4.
Posted by Marion & Christophe JAILLET <ch...@wanadoo.fr>.
Le 07/02/2020 à 01:23, suisou a écrit :
> hi,all.
>
> I am a fresh .
>
> my server version
> Server version: Apache/2.4.37 (centos)
> Server built: Dec 23 2019 20:45:34.
>
> httpd.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
> httpd-devel.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
> httpd-filesystem.noarch 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
> httpd-tools.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream
> apr.x86_64 1.6.3-9.el8 @AppStream
> apr-devel.x86_64 1.6.3-9.el8 @AppStream
> apr-util.x86_64 1.6.1-6.el8 @AppStream
> apr-util-bdb.x86_64 1.6.1-6.el8 @AppStream
> apr-util-devel.x86_64 1.6.1-6.el8 @AppStream
> apr-util-openssl.x86_64 1.6.1-6.el8 @AppStream
> audit.x86_64 3.0-0.10.20180831git0047a6c.el8 @anaconda
>
>
>
> the code in chapter
>
>
> Retrieve variables from POST form data
>
> from http://httpd.apache.org/docs/current/en/developer/modguide.html
> can't get the right respone.
> i CHECK it step by step ,and found that
> this row not work .
> kvp[i].key = apr_pstrdup(r->pool, pair->name);
>
> Is this a bug?
>
> thanks.
>
Hi, suisou,
could you elaborate on what you mean by "not work" and "can't get the
right response"?
What do you expect, what do you get?
CJ
Re: the demo code can't run normally in apache 2.4.
Posted by Dennis Clarke <dc...@blastwave.org>.
> Retrieve variables from POST form data
> from http://httpd.apache.org/docs/current/en/developer/modguide.html can't get the right respone.
> i CHECK it step by step ,and found that
> this row not work .
> kvp[i].key = apr_pstrdup(r->pool, pair->name);
>
>
> Is this a bug?
>
Please test with httpd 2.4.41 and then report back.
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional