1

Using mod_perl2, I'm trying to access the request args e.g.

$r->args()

in an output filter. Is it possible?

I considered using pnotes however if i store the pnote reference against the request ($r) how do I retrieve it in the output filter? It seems like r is not available to me in an output filter.

noddy
  • 185
  • 1
  • 10

1 Answers1

0

A brief check of the docs suggest access to Apache2::RequestRec ($r) is fine, with code xamples.

http://perl.apache.org/docs/2.0/user/handlers/filters.html#HTTP_Request_Output_Filters

ashley
  • 559
  • 5
  • 13
  • In that example, is $r the filter rather than the request? I'm new to Pearl so I appologise if this is a silly q. http://perl.apache.org/docs/2.0/api/Apache2/Filter.html – noddy Mar 19 '13 at 03:12