Re: PerlAccessHandler for POST access

2022-08-03 Thread pengyh
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.

Re: PerlAccessHandler for POST access

2022-08-03 Thread pengyh
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

Re: PerlAccessHandler for POST access

2022-08-03 Thread Vincent Veyron
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

Re: PerlAccessHandler for POST access

2022-08-03 Thread pengyh
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.

PerlAccessHandler for POST access

2022-08-03 Thread pengyh
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