httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddy <eddy.deli...@gmail.com>
Subject Re: Modify the body of a post request Multipar/form-data?
Date Thu, 10 Jun 2010 09:40:40 GMT
For illustrate my problem :

I have register a filter like in deflate :
ap_register_input_filter(PerseusFilterName,perseus_in_filter, NULL,
AP_FTYPE_CONTENT_SET);

In httpd.conf :
SetInputFilter PERSEUS

So, I test with a crypted content and i hae in error.log :


Perseus handler, Perseus header found : pcc
[Thu Jun 10 11:29:28 2010] [error] [client 127.0.0.1] PHP Warning:  Missing
boundary in multipart/form-data POS
T data in Unknown on line 0, referer: http://localhost/
Input Filter begin
The handler do nothing, then php processes the encrypted content and fails.
Then, my Filter begin and decrypt the data but it's too late.

May-be I forget something, i don't understand the problem.

For the deflate module,  just set SetInputFilter Deflate in httpd.conf
enought?

Eddy




On Thu, Jun 10, 2010 at 10:54 AM, Eddy <eddy.deligne@gmail.com> wrote:

> Yes i try to do the same thing but I have a problem, my filter begins too
> late and php has already process the data.
> I must do a error somewhere.
> Thanks for your help.
> Eddy
>
>   On Thu, Jun 10, 2010 at 10:29 AM, Nick Kew <niq@apache.org> wrote:
>
>>
>> On 10 Jun 2010, at 07:34, Eddy wrote:
>>
>> > How modify (decrypt data) the body content before all module ?
>>
>> That's what filters do.
>>
>> See mod_ssl for secure encryption.  Or in your case since it's only the
>> body content, see for example mod_deflate for a comparable task.
>>
>> --
>> Nick Kew
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message