Re: Question about Apache::Request and query strings

2003-07-14 Thread Stas Bekman
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

Re: Question about Apache::Request and query strings

2003-06-27 Thread Swen Schillig
] | | cc: | | Subject: Question about Apache::Request and query strings

Re: Query

2003-01-08 Thread Perrin Harkins
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

Re: Query

2003-01-07 Thread Ken Y. Clark
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

RE: Query

2003-01-07 Thread Chandrasekhar R S
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

Re: Query

2003-01-07 Thread Perrin Harkins
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

RE: Query

2003-01-07 Thread Ken Y. Clark
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

Re: Query

2003-01-07 Thread Jean-Michel Hiver
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

RE: Query

2003-01-07 Thread Chandrasekhar R S
. 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

RE: Query

2003-01-07 Thread George Valpak
- 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

RE: [OT] Query

2003-01-07 Thread Rob Bloodgood
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

Query

2003-01-06 Thread Chandrasekhar R S
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

path_info() query.

2002-07-04 Thread Wes Cravens
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:

Re: path_info() query.

2002-07-04 Thread giorgos zervas
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

Re: path_info() query.

2002-07-04 Thread Valerio_Valdez Paolini
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

RE: path_info() query.

2002-07-04 Thread Wes Cravens
() 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

Re: Memory query

2002-03-14 Thread Andrew Green
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

Memory query

2002-03-13 Thread Andrew Green
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

query

2002-03-13 Thread Parag R Naik
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)

Re: query

2002-03-13 Thread Perrin Harkins
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

Re: Memory query

2002-03-13 Thread Perrin Harkins
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

Re: query

2002-03-13 Thread Ged Haywood
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.

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Malcolm Beattie
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

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Alexander Farber (EED)
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

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Paul
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: ---

RE: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Garrett Goebel
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

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Brian Ingerson
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

Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-14 Thread Paul
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

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-14 Thread Paul
--- 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

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-14 Thread Elizabeth Mattijsen
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

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-14 Thread Paul
--- 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

$query-path+info is not what i thought it would be

2001-03-03 Thread Andrew Clark
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

Re: $query-path+info is not what i thought it would be

2001-03-03 Thread Matt Sergeant
. 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

Re: $query-path+info is not what i thought it would be

2001-03-03 Thread Andrew Clark
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

A query regarding the common Parser

2001-02-27 Thread Rajesh Mathachan
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

Re: changing query string

2001-01-24 Thread darren chamberlain
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

changing query string

2001-01-23 Thread Vincent Apesa
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

setting query in PerlTransHandler

2000-01-09 Thread Ajay Shah
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

setting query in TransHandler

2000-01-09 Thread Ajay Shah
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);

Re: setting query in PerlTransHandler

2000-01-09 Thread Randal L. Schwartz
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

trouble reading query string

1999-12-22 Thread Ken Y. Clark
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

Re: trouble reading query string

1999-12-22 Thread Dmitry Beransky
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*

Re: Read query string on POST request?

1999-12-21 Thread Doug MacEachern
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

Query/Parse/Format/Display ?

1999-12-02 Thread raptor
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] ==

RE: Query/Parse/Format/Display ?

1999-12-02 Thread ricarDo oliveiRa
- 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

Performance query of DBD::Proxy

1999-01-02 Thread Peter Galbavy
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.