of subrequests being fired and I _explicitly_ don't
wish my code to run multiple times because strange things might happen.
prevent this from happening.
I guess this is because of subrequests being fired and I _explicitly_ don't
wish my code to run multiple times because strange things might happen.
There are lots of ways of finding out what happens when a request comes in.
Read the debugging section
Miroslav Madzarevic wrote:
Is it possible that my perl script (Apache::Registry,
Apache::PerlRun, HTML::Mason or whatever) could run multiple
times with same parameters when the user just invokes the URL
once (for example clicks on A tag) and if so how can I prevent
this from happening.
Hi there,
On Fri, 6 Apr 2001, Joachim Zobel wrote:
Is content negotiation somehow uncool? I could not find an
Apache::Negotiate to interface with mod_negotiate and its remarkably
little discussed.
Probably because whatever the results of the negotiation, Internet Exploder
will probably
Hi.
I still think about a way to use content negotiated templates. My favourite
solution is now to make my template filler a content handler for the
template direktory. The problem is to pass the data the handler should fill in.
How do I pass larger data structures to a subrequest? Is there
Hello!
When i define a pnote for a request, can i access this pnote in a
handler handling a sub request of the first request?
- Nikolaus
--
Heute kann man ja kaum noch eine AOL-CD aus dem Fenster werfen, ohne
jemanden zu treffen, der einen SuSE-Karton unter dem Arm trgt.
-Original Message-
From: Nikolaus Rath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 12:18 PM
To: [EMAIL PROTECTED]
Subject: $r-pnotes and SubRequests
Hello!
When i define a pnote for a request, can i access this pnote in a
handler handling a sub request
On Wed, 4 Oct 2000, Jim Winstead wrote:
On Oct 04, Luis 'Champs' de Carvalho wrote:
Can i make the mod_proxy redirect using a sub-request, and still
have the contents (and headers, and everything else) to let apache handle
the response phase ?
no.
That's great.
there
Hy, list people.
I'm need build a rewriting proxy module for my apache. The basic
idea is get a request, turn it on a proxy request as described in the
eagle book @ page 371, rewrite the $request-contents so the client will
come back to me when processing the
On Oct 04, Luis 'Champs' de Carvalho wrote:
Can i make the mod_proxy redirect using a sub-request, and still
have the contents (and headers, and everything else) to let apache handle
the response phase ?
no.
If not, how can i do this weird thing?
take a look at
thanx, Andrei
That could work. However, am I not limited to a certain size GET string? Or
are GET strings of unlimited size when issued internally by a SubRequest and
not an actual client? One definite problem is that that cgi in question would
need to know how to handle both GET and POST
hello, all
I am currently trying to have a cgi execute in a mod_perl module by
generating a subrequest to the executable via
lookup_uri. It is working great for GET requests. However, POST requests
are obviously failing because only the uri is being passed to the
subrequest and not the main
On Sun, 20 Aug 2000, Alex Menendez wrote:
unfortunately, I am not entirely sure what a cgi is going to output all the
time. The cgi might try to do a redirect using the Location field. Therefore,
I don't think I can simply send_http_headers as type text/html...
right,
my $lookup =
On Wed, 14 Jun 2000, Paul J. Lucas wrote:
The second example on p. 128 of the Eagle book sets the content
type and send the HTTP headers itself before running a
subrequest.
However, on p. 468, the documentation for the run() method says
in part:
h,
I have tried what you suggested and it is still not generating the
headers. I have tried calling the send_http_header function both before
and after the handler switch and it still is not working. I think it is
bug but I am not sure. At any rate, here is some of the module code and
the
whoops. yeah, $subr-send_http_header won't work for the same reason
send_http_header() calls within run() do not. you'll just need to
propagate subrequest info like so:
my $subr = $r-lookup_uri($uri);
$r-send_http_header($subr-content_type);
$subr-run;
ok, what about cgi's that generate Location: headers. Am I out of luck
here? should I contemplate changing src for ap_run_sub_req
thanx,
-amen
On Mon, 21 Aug 2000, Doug MacEachern wrote:
whoops. yeah, $subr-send_http_header won't work for the same reason
send_http_header() calls within
below you can say
$subr-run(1), where 1 enables send_http_header() within subrequests.
--- src/modules/perl/Apache.xs 2000/08/15 19:36:32 1.103
+++ src/modules/perl/Apache.xs 2000/08/21 19:38:32
@@ -1996,10 +2003,15 @@
"Apache::SubRequest::DESTROY(0x%lx)\n", (unsig
this. with the patch below you can say
$subr-run(1), where 1 enables send_http_header() within subrequests.
--- src/modules/perl/Apache.xs 2000/08/15 19:36:32 1.103
+++ src/modules/perl/Apache.xs 2000/08/21 19:38:32
@@ -1996,10 +2003,15 @@
"Apache::SubRequest::DESTROY(0x%
Hello, all
I have a module that appends a line of stats sensitive information to
the bottom of html pages or
cgi scripts. the module uses lookup_uri() to generate a subrequest then
calls run() to output the actual contents of the file. the eagle book
says that calling run() on a subrequest
On Aug 20, 2000 at 19:38:53 -0700, Alex Menendez twiddled the keys to say:
cgi scripts. the module uses lookup_uri() to generate a subrequest then
calls run() to output the actual contents of the file. the eagle book
says that calling run() on a subrequest should automatically send the
unfortunately, I am not entirely sure what a cgi is going to output all the
time. The cgi might try to do a redirect using the Location field. Therefore,
I don't think I can simply send_http_headers as type text/html...
thanx, though
-amen
Rick Myers wrote:
On Aug 20, 2000 at 19:38:53 -0700,
?
The above aside, I'm having a problem when using subrequests
when the subrequest also involves a (different) content handler.
First, in a VirtualHost block, I have:
AddType text/html .chtml
Files *.chtml
SetHandlerperl
23 matches
Mail list logo