Tom Gazzini wrote:
I have a perl function which, amongst other things, needs to redirect
the request to another page.
It also needs to pass all the query parameters of the original request
(both GET and POST) to the redirected page, and also add one parameter
of it's own (an error message).
Sounds
]
|
| cc:
|
| Subject: Question about Apache::Request and query strings
George Valpak wrote:
Sounds like you need 2 apaches, on separate physical servers -
I agree, the proxy approach is your best choice, and it gives other
performance benefits as well, described in the documentation.
- Perrin
On Tue, 7 Jan 2003, Chandrasekhar R S wrote:
Date: Tue, 7 Jan 2003 12:52:27 +0530
From: Chandrasekhar R S [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Query
I am having a requirement as follows :
I need to execute/interpret the perl requests away from mod_perl. Like,
could
Message-
From: Ken Y. Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:02 PM
To: Chandrasekhar R S
Cc: [EMAIL PROTECTED]
Subject: Re: Query
On Tue, 7 Jan 2003, Chandrasekhar R S wrote:
Date: Tue, 7 Jan 2003 12:52:27 +0530
From: Chandrasekhar R S [EMAIL PROTECTED]
To: [EMAIL
Chandrasekhar R S wrote:
I am having a requirement as follows :
I need to execute/interpret the perl requests away from mod_perl.
Can you explain why you want to do this? Your stated requirement is
already met by CGI, FastCGI, SpeedyCGI, and a bunch of other things, but
we can't really
On Tue, 7 Jan 2003, Chandrasekhar R S wrote:
Date: Tue, 7 Jan 2003 21:38:57 +0530
From: Chandrasekhar R S [EMAIL PROTECTED]
To: 'Ken Y. Clark' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Query
Hello Ken,
You gave me a glimmer of hope and enthusiasm. I have scanned through
I definitely would like to get fancier as my requirement is immediate.
Upon finding a server that could process the requests away from mod_perl, I
most probably would modify mod_perl to communicate with the standalone
servers via sockets (and maybe maintain persistence).
Don't. You
.
I will probe all the suggestions you all had sent me.
I shall look for at the POE mail lists.
with thanks
rsr.
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:08 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Query
-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:08 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Query
Chandrasekhar R S wrote:
I am having a requirement as follows :
I need to execute/interpret the perl requests away from mod_perl.
Can
I would like to know any such standalone servers that could
process the perl requests offline (taking requests from a file or
queue end).
I definitely would like to get fancier as my requirement is
immediate. Upon finding a server that could process the requests
away from
I am having a requirement as follows :
I need to execute/interpret the perl requests away from mod_perl. Like,
could mod_perl delegate the execution/interpretation of perl scripts to some
other process. In the end, mod_perl would be used just to accept requests
from the Web Server, but
Hello all,
This is perhaps an apahce uri translation problem but:
I am having a path_info problem...
Synopsis.
Location /
SetHandler perl-script
PerlHandler Module
/Location
Module.pm returns $r-path_info() in html to client.
url: 'www.host/' returns '/'
url:
hi,
apache uses a simple technique for determining the path_info. it starts
at your document root and looks for the directory you specified in your
URI. it continues to go deeper in the directory structure until it
encounters a directory(or file) that doesn't exist. when this happens
the the
On Thu, 4 Jul 2002, Wes Cravens wrote:
url: 'www.host/' returns '/'
url: 'www.host/debug' returns '' when I was expecting '/debug'
does a file or directory named 'debug' exist in your document root?
If so, it's normal. It is also possible that you are doing an error
I made many times :) You
() query.
hi,
apache uses a simple technique for determining the path_info. it starts
at your document root and looks for the directory you specified in your
URI. it continues to go deeper in the directory structure until it
encounters a directory(or file) that doesn't exist. when this happens
In article [EMAIL PROTECTED],
Perrin Harkins [EMAIL PROTECTED] wrote:
If you actually want to free the memory, you need to undef it. The
untie prevents it from persisting, but the memory stays allocated
unless you undef.
OK, I think I'm probably handling this properly then, after all.
In
Morning all,
Forgive the naivete, but I'm having trouble wrapping my mind around the
memory implications of using tied hashes, and I haven't found anything in
the Camel book or the Guide to clarify the situation for me.
A fair amount of my Registry scripts need to use code not unlike the
The we are not able to bring the site up and running on linux version
6.2 with perl 5.005 , mod_perl 1.21 , I think the problem is the version
of the perl that we are using . We have installed perl 5.6 but we are
not able to figure out how to instruct apache to use that version of
perl(5.6)
Parag R Naik wrote:
We have installed perl 5.6 but we are
not able to figure out how to instruct apache to use that version of
perl(5.6
You have to re-compile mod_perl.
Is the our directive used in some of files new to perl 5.6 because we
could not find that directive in the most of
Andrew Green wrote:
In particular, I'm
looking for reassurance that passing a reference to a hash doesn't copy
the hash itself into memory in any way, and that the memory overhead is
only as large as the largest $item.
That's basically correct, but some dbm implementations will use their
Hi there,
On Wed, 13 Mar 2002, Parag R Naik wrote:
We have installed perl 5.6
Make sure you get 5.6.1 not 5.6.0 which is buggy.
73,
Ged.
Paul writes:
--- Brian Ingerson [EMAIL PROTECTED] wrote:
Garrett Goebel wrote:
From: Paul [mailto:[EMAIL PROTECTED]]
Anybody know offhand *why* my() lexicals are supposedly faster?
Yes this is OT, but I'll contribute to the problem as well...
My coworker Gisle
Paul wrote:
--- Robert Landrum [EMAIL PROTECTED] wrote:
I could be wrong, but as I recall, when your program enters a scope,
perl immediatly identifies the the scratchpad to use. Then, it need
only search backwards up the tree of scratchpads to find the variable
"$x", which is faster
Many thanks to everyone, Malcolm in particular, for humoring my
curiosity and assisting my esoteric research.
Hope it helped someone else, too, and sorry for cluttering up the
board.
But it *dod* say it was Very[OT]. ;o)
Paul
--- Malcolm Beattie [EMAIL PROTECTED] wrote:
Paul writes:
---
Title: RE: Very[OT]:Technical query re: scratchpad lookups for my() vars
From: Paul [mailto:[EMAIL PROTECTED]]
Anybody know offhand *why* my() lexicals are supposedly faster?
Because a dynamic variable allocates a new value at runtime which occludes the global value until it's scope
Garrett Goebel wrote:
From: Paul [mailto:[EMAIL PROTECTED]]
Anybody know offhand *why* my() lexicals are supposedly faster?
Because a dynamic variable allocates a "new" value at runtime which occludes
the global value until it's scope expires. In contrast, a lexical variable
is unique
Anybody know offhand *why* my() lexicals are supposedly faster?
If they're stored on a scratchpad for the scope, which is an array,
(technically a stack of them to accommodate recursion,) then exactly
how does Perl go about finding which data location you mean when you
say $x for a lexical? $::x
--- Robert Landrum [EMAIL PROTECTED] wrote:
I could be wrong, but as I recall, when your program enters a scope,
perl immediatly identifies the the scratchpad to use. Then, it need
only search backwards up the tree of scratchpads to find the variable
"$x", which is faster than iterating
At 03:52 PM 3/14/01 -0800, Paul wrote:
But nothing about the structural/algorithmic mechanics. :
From the perlsub docs:
Variables declared with my are not part of any package and are therefore
never fully qualified with the package name. In particular, you're not
allowed to try to make a
--- Elizabeth Mattijsen [EMAIL PROTECTED] wrote:
At 03:52 PM 3/14/01 -0800, Paul wrote:
But nothing about the structural/algorithmic mechanics. :
From the perlsub docs:
Variables declared with my are not part of any package and are
therefore
never fully qualified with the package
Hi, could someone PLEASE help!
I am trying to write a script that if accessed through
http://server/script/
would produce HTML, where-as:
http://server/script/wap/
would produce WML.
That all worked fine until i converted to mod_perl. I did change
$ENV{'PATH_INFO'} to the $query-path_info
. I did change
$ENV{'PATH_INFO'} to the $query-path_info() code and usually works fine
until there are multiple requests between wap and html.
from what i can tell if you access the script with /wap/ it always
works, but it's when you pass it nothing that I get what seems to be the
contents
Thanks but it's nothing to do with global variables I don't think
eg.
my $query = new CGI;
print $query-path_info();
works when a path info has been added to the URL but returns random
results when there isn't one.
Andrew
In message [EMAIL PROTECTED],
Matt Sergeant [EMAIL PROTECTED
Hi all ,
I need to parse different url's to get the details of the medical sites and
put it into my database and generate
the newsite , I am using perl for getting the pages and parsing the data in
all the pages and this seems to be semi manual kinda
stuff, i need to see the page and then write
Vincent Apesa ([EMAIL PROTECTED]) said something to this effect on 01/23/2001:
Hello all,
I'm trying to modify the query string from the client before sending it
off again. I would like to do something like so:
http://www.xyz.com?one=1 and modify the uri to
http://www.xyz.com?one=2
Hello all,
I'm trying to modify the query string from the client before sending it
off again. I would like to do something like so:
http://www.xyz.com?one=1 and modify the uri to
http://www.xyz.com?one=2
the problem is I'm not sure how to reference values in the query string. I
would like
This maybe be repeated becuase I sent the first message via
Geo Crawlere and don't know how long they are going to take
to review the message. Sorry if it comes in twice.
I am writing a simple PerlTransHandler that is going to change
the request into another with query string.
The following
following
/articles/10/index.html = /articles/index.html?id=10
So this is my attempt:
...
my ($id) = ($uri =~ m|^/articles/(.*?)/|);
my $newuri = $r-document_root . "/articles/index.html";
my $uriobj = $r-parsed_uri;
$uriobj-query("id=$id");
$r-uri($newuri);
ewuri = $r-document_root . "/articles/index.html";
Ajay my $uriobj = $r-parsed_uri;
Ajay $uriobj-query("id=$id");
Ajay $r-uri($newuri);
Ajay return OK;
Ajay }
I may be wrong, but I bet you have to do this instead:
$r-uri("/articles/index.html");
$r-args(&q
i'm currently converting several CGI scripts into mod_perl modules, and
i'm having difficulty in one particular situation reading the variable
input (i.e., query string on a GET or STDIN on POST). quick background: i
had a PerlHandler on the end of this request for a while, accepting input
like
At 11:52 AM 12/22/99 , Ken Y. Clark wrote:
so it now works, but i feel kinda dirty. and here's the last bit of
strangeness: i have another page that is generated in the same manner
that works just fine. the only difference is that the perl sub generates
a form that is *not*
On Thu, 16 Dec 1999, Tobias Hoellrich wrote:
I pass a session id in the query string between invocations for my
current project (only if the client does not support Cookies). My main
handler is also responsible for creating an Apache::Request object right
at the beginnig of the handler
hi,
I want to make the following :
1. Query a site ?
2. Get the results of the query in my script (we are still in Apache)
3. Exctract the information I need ?
4. Fomat it and send to the browser ?
Does someone made something similar. Example ?
Thanx in advance
=
iVAN
[EMAIL PROTECTED]
==
-
From: raptor [EMAIL PROTECTED]
To: [EMAIL PROTECTED][EMAIL PROTECTED]
Sent: December 2, 1999 8:47:35 PM GMT
Subject: Query/Parse/Format/Display ?
hi,
I want to make the following :
1. Query a site ?
2. Get the results of the query in my script (we are still in Apache)
3. Exctract the inf
I guess this isn't exactly the right place, but if anyone knows about
the real world and DBD::Proxy with Apache it's you people...
I have been working with a client who has looked at using Intel
platforms (with Linux cwas the initial alternative platform) as a
backend modperl/Oracle web engine.
46 matches
Mail list logo