Multiple Cookie Header Bug with Apache::ProxyRewrite

2002-04-06 Thread Alex Menendez
hello, Christian I found a bug with how Apache::ProxyRewite handles cookies. Our proxy server was trying to display a remote application that heavily uses cookies butthe application was failing miserably. I compared the headers of what the proxy server was sending to the client vs. what the r

Re: WebDAV support in mod_perl

2000-11-29 Thread Alex Menendez
I am very interested in any developments in this area. I currently am doing dav stuff in Java for macromedia.com and would be interested in porting it to my first love: Perl! please let me know of any developments. I am willing to help, if you need it. cheers, -amen On Wed, 29 Nov 2000, Ian K

GET request size

2000-08-25 Thread Alex Menendez
hello, all is there any limit to the size of a GET request url when it is generated from inside a mod_perl module? I have a POST cgi coming in with a bunch of data and I would like to turn it into a GET url so I can effectively use lookup_uri and run from the Apache::SubRequest class. I know

Re: how to set more then one cookie

2000-08-25 Thread Alex Menendez
you can also use Apache::Cookie and do something like this: my $cookie = Apache::Cookie->new($r, -name=> 'q_string', -value => $value, -expires => '+3h',

Re: STDIN and subrequests

2000-08-24 Thread Alex Menendez
, Aug 23, 2000 at 10:03:59PM -0700, Alex Menendez wrote: > > 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

STDIN and subrequests

2000-08-23 Thread Alex Menendez
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 reque

Re: executing a cgi from within a handler (templating redux)

2000-08-23 Thread Alex Menendez
H, the do does seem a little inefficient. I solved this problem in the past by intiating a subrequest and changing the stack handler to cgi-script right before running the cgi. something like this: $subr = $r->lookup_uri($uri); if($r->filename =~ /\.(cgi|pl)$)/o) { $subr->handler('cgi-sc

Re: cgis and subrequests

2000-08-21 Thread Alex Menendez
nts and to cgis that only change the content type header. Just an FYI... -amen Doug MacEachern wrote: > On Mon, 21 Aug 2000, Alex Menendez wrote: > > > > > ok, what about cgi's that generate Location: headers. Am I out of luck > > here? should I contemplate changing s

Re: Passing a hash to a cgi outside a form?

2000-08-21 Thread Alex Menendez
you can't do this, dude. test.cgi dies and so do all it's pointers to structures in memory. try looking at Apache::Registry or mod_perl with the Apache::Filter mod. Or if you want to keep these things as cgi's look at LWP which lets you make http requests from within perl programs. However, I

Re: cgis and subrequests

2000-08-21 Thread Alex Menendez
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

Re: cgis and subrequests

2000-08-21 Thread Alex Menendez
er perl-script PerlHandler Macromedia::AddStatImage SetHandler perl-script PerlHandler Macromedia::AddStatImage PerlSetVar is_cgi 1 any ideas? -amen On Mon, 21 Aug 2000, Doug MacEachern wrote: > On Sun, 20 Aug 2000, Alex Menendez wrote: > > > unfortunately, I am not

Re: cgis and subrequests

2000-08-20 Thread Alex Menendez
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 >

cgis and subrequests

2000-08-20 Thread Alex Menendez
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 shou

new cgi mod_perl question

2000-08-16 Thread Alex Menendez
does anyone know how to get the output of a standalone cgi script from a mod_perl module I have tried all the subrequest stuff but I can't get it to work. Apache seems to parse the cgi file once a handler has been called. simply writing a handler that returns DECLINED every time it is called li

Re: canned footers

2000-08-16 Thread Alex Menendez
Your right. this works great for html! Unfortunately, however, Apache sandwich really does not work for me because it only deals with GET requests and it can not deal with cgi requests directly. I would need to alter my cgi's in order to use sandwich. I am looking for a mod_perl solution that wi

canned footers

2000-08-16 Thread Alex Menendez
hello, all I am trying to write a module that generates a canned footer for all html and cgi pages on my site. the html part is pretty easy and I have already implemented it. However, I am currently having trouble adding it to standalone cgi scripts that are not parsed by the server. I have tried

regular cgis and mod_include and/or Apache::SSI

2000-06-07 Thread Alex Menendez
Hello, all I have a very simple problem for which I am sure (hope) there is a very simple solution. I basically want to pipe cgi output to mod_include or rather the equivalent mod_perl module, Apache::SSI. I do not want to make the cgis mod_perl modules nor Apache::Registery scripts. Just want t

Re: Cookies and redirection

2000-05-09 Thread Alex Menendez
not completely sure about real mod_perl. However, the following works great using Apache::Registry and CGI: print $query->header(-cookie=>[$id_cookie,$crypt_cookie], -Location=>$query->param("redirect").'?name='.@$ref[1].'&last_login='.@$ref[3].'&site_id='.$query-> param('site_id')); I think A

Parent Process Memory Space

1999-12-13 Thread Alex Menendez
Hello, All I currently have a caching module for dynamic pages that is loaded up upon server startup. However, when each child process uses this module they each create a copy of the modules caching hash. I would like to have 1 copy of the caching hash in the parent process that each child ca

DBI Performance with Multiple IDs

1999-12-09 Thread Alex Menendez
hello, all Given the following situation what is more efficient: -I have 10 id numbers I want to query on numbers 1,2,3,4,5,6,7,8,9,10 respectively. However, this list is not fixed and could be any number of ids up to 20. -Is it faster to create a global variable with a prepared sql statement a

Re: simple xml parsing within html

1999-12-09 Thread Alex Menendez
yes, bill I am actually doing the same thing! however, I still would like a pre-cached transaction to run faster for those pages that are truly dynamic and can never really be cached effectively. -amen Bill Moseley wrote: > At 08:47 PM 12/8/99 -0800, Alex Menendez wrote: > >I initia

simple xml parsing within html

1999-12-08 Thread Alex Menendez
hello, all I currently have developed a dynamic content engine in mod_perl that parses html files on the fly for proprietary xml tags then replaces these tag trees with db content. I initially tried to do this by subclassing HTML::Parser and over-riding the usual methods. However, this was painf

Simple Mod_Perl XML Engine

1999-11-22 Thread Alex Menendez
hello, all I am currently developing a simple mod_perl xml engine that replaces proprietary xml packets embedded in a web page with db content...no formatting just simple text. I have just started and do not want to re-invent the wheel if a good package exists out there. My initial plan was to l

Re: DBI/Apache::DBI under mod_perl

1999-10-26 Thread Alex Menendez
this destroy routine is definitely a problem (may or may not be the cause of the error though) apache::dbi over-rides the dbi connect method in order to check an internal hash of cached db handles so that an existing connection can be returned rather than taking the performance hit of establishing

Re: I'm on the modperl mailing list now...

1999-10-01 Thread Alex Menendez
John, Doug explained to me that the mod_perl Makefile.PL adds some info from Perl's Config.pm, which includes libraries that Perl needs. If your systems Perl was installed from an rpm (which mine was), it is very likely that Perl was configured to include a library (such as gdbm) that is not actu