Re: is mpm_event safe for modperl handler?

2022-08-04 Thread pengyh
thanks. that does sound sorry. No and neither is mod_worker. The only mpm you can safely use is prefork. This is, in my opinion, mod_perl's fatal flaw which will doom it.

Re: is mpm_event safe for modperl handler?

2022-08-04 Thread John Dunlap
No and neither is mod_worker. The only mpm you can safely use is prefork. This is, in my opinion, mod_perl's fatal flaw which will doom it. On Thu, Aug 4, 2022 at 2:27 AM pengyh wrote: > Hello > > yes i know mpm_prefork is pretty good for modperl applications. > if I run modperl handler (for

Re: PerlAccessHandler for POST access

2022-08-04 Thread Edward J. Sabol
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 -> >

Re: PerlAccessHandler for POST access

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

Re: PerlAccessHandler for POST access

2022-08-04 Thread pengyh
multiple -d "x=y" should be working.   -d "param1=value1=value2"

Re: PerlAccessHandler for POST access

2022-08-04 Thread Edward J. Sabol
> 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' \ >

Re: PerlAccessHandler for POST access

2022-08-04 Thread Mithun Bhattacharya
-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

Re: PerlAccessHandler for POST access

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

Re: PerlAccessHandler for POST access

2022-08-04 Thread Mithun Bhattacharya
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

is mpm_event safe for modperl handler?

2022-08-04 Thread pengyh
Hello yes i know mpm_prefork is pretty good for modperl applications. if I run modperl handler (for example, PerlAccessHandler) under mpm_event, is it safe for a production environment? thanks.