On Aug 4, 2022, at 5:09 AM, pengyh wrote:
>> LoadModule apreq_module modules/mod_apreq2.so
>> in your httpd.conf?
>
> yes. as you see:
> lrwxrwxrwx 1 root root 27 Aug 4 14:00 perl.load ->
> ../mods-available/perl.load
> lrwxrwxrwx 1 root root 29 Aug 4 14:01 apreq2.load ->
>
LoadModule apreq_module modules/mod_apreq2.so
in your httpd.conf?
yes. as you see:
lrwxrwxrwx 1 root root 27 Aug 4 14:00 perl.load ->
../mods-available/perl.load
lrwxrwxrwx 1 root root 29 Aug 4 14:01 apreq2.load ->
../mods-available/apreq2.load
Have you tried it with mpm_prefork?
multiple -d "x=y" should be working.
-d "param1=value1=value2"
> On Aug 4, 2022, at 3:29 AM, pengyh wrote:
> OK as you can test this GET works:
>
> http://fb.cloudcache.net/?timestamp=12345=906434463477769dba188a4b670ef425
>
> but this POST doesn't work:
>
> curl -X POST -d 'timestamp=12345' \
>-d 'authkey=906434463477769dba188a4b670ef425' \
>
-d "param1=value1=value2"
On Thu, Aug 4, 2022 at 12:29 AM pengyh wrote:
>
>
>
> > You need to share the complete GET & POST request with the data section.
>
> OK as you can test this GET works:
>
>
> http://fb.cloudcache.net/?timestamp=12345=906434463477769dba188a4b670ef425
>
> but this POST
You need to share the complete GET & POST request with the data section.
OK as you can test this GET works:
http://fb.cloudcache.net/?timestamp=12345=906434463477769dba188a4b670ef425
but this POST doesn't work:
curl -X POST -d 'timestamp=12345' \
-d
It only means that Apache::Request did not parse your POST request
correctly. It is not form encoded or there is a typo.
You need to share the complete GET & POST request with the data section.
On Wed, Aug 3, 2022 at 5:52 AM pengyh wrote:
>
>
>
> > Have you checked that the values of $key and
Have you checked that the values of $key and $digest are equal?
as i have said, GET always works, but POST doesn't. so I am not sure
where is wrong.
return $key eq $digest ? Apache2::Const::OK : Apache2::Const::FORBIDDEN;
there are no further customized code for Apache2::Const::OK.
the httpd.conf just as:
ServerAdmin webmaster@localhost
ServerName my.site.net
DocumentRoot /var/www/feedback
On Wed, 3 Aug 2022 19:46:00 +0800
pengyh wrote:
>
> POST always gets a 403 error. but GET does get the correct response.
>
which is what your code returns with this line:
return $key eq $digest ? Apache2::Const::OK : Apache2::Const::FORBIDDEN;
Have you checked that the values of $key and
POST always gets a 403 error. but GET does get the correct response.
Thanks
What do you mean by “doesn’t work”. Do you mean your code isn’t executed at
all, or that it isn’t executing correctly? It would be helpful to see the
associated Apache config, as well.
do you know for my this simple PerlAccessHandler, why HTTP GET works,
but POST doesn't?
use strict;
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::Connection ();
use APR::Table ();
use Apache2::Const -compile => qw(OK FORBIDDEN);
use Apache2::Request;
use Digest::MD5
12 matches
Mail list logo