Hi,

I need the include virtual directive to be able to issue POST requests. 
It should pass the request body to the subrequest. So I came up with 
the attached patch.

It allows to write

  <!--#include method="post" virtual="..." --> or
  <!--#include method="inherit" virtual="..." -->

I think the patch is right so far but I wouldn't mind if some more 
experienced eyes had a look.

One problem remains. What if the HTML author uses that method=post thing 
twice? The first call has consumed the post body. The second will try 
to read something but the client has already sent all it can.

Hence, I'd like to

  if (!eof_on_input()) {
      rr->headers_in = r->headers_in;
  }

How can I determine if the request body for the current request has 
already been consumed?

Is there a chance that a patch like this will be accepted for inclusion 
in apache?

Torsten

-- 
Need professional mod_perl support?
Just hire me: [email protected]

Reply via email to