Re: CGI versus Apache::Request -- confusion

2008-01-31 Thread Mag Gam
All, Thanks for the great explanation for newbies like me! Keep up the good work On Jan 31, 2008 11:57 AM, Anthony Gardner <[EMAIL PROTECTED]> wrote: > If you have a vanilla CGI script, every request you make to the webserver > it's running on, will always create a new instance of that script, r

allow_methods not setting list when request if of type OPTIONS

2008-01-31 Thread Christopher Stanton
Hey Everyone, I am trying to set the allowed bitmask in a custom request handler when I receive the OPTIONS method (and when I receive a method request for a method I do not support). This includes possibly not listing support for GET or POST. I am using: Fedora Core 6 Apache 2.2.4-2.1 mod_perl 2

Re: CGI versus Apache::Request -- confusion

2008-01-31 Thread Anthony Gardner
If you have a vanilla CGI script, every request you make to the webserver it's running on, will always create a new instance of that script, run it, return the values in a response and then the script ceases to exist in the server. The next time a request arrives for that script, the same sequen

Re: [mp2] [bug?] %ENV changes not propagated to qx() and to C-library calls.

2008-01-31 Thread Michael Schout
The docs seem to suggest that that changes to %ENV should work fine: http://perl.apache.org/docs/2.0/user/coding/coding.html mod_perl passes (exports) the following shell environment variables (if they are set) : * PATH - Executables search path. * TZ - Time Zone. Any of these e

RE: output filters

2008-01-31 Thread Adam Prime x443
If you're using the stream API like this you'll never see the headers in $buffer. I think you would have to modify them using $f->r (the request object), then abuse the headers_out and/or err_headers_out tables. I'm not sure if this is the case for the bucket brigade API or not (i've never used

output filters

2008-01-31 Thread J Amuse
I'm trying to write a filter using modperl that will update parts of the server response on the fly. My first attempt was to rewrite the path setting in the server's set cookie response to set the path to: path=/NewPath. After copying and pasting some examples I came up with the following: package

Re: CGI versus Apache::Request -- confusion

2008-01-31 Thread Michael Peters
Mag Gam wrote: > I am bit confused. While reading the mod_perl book, I noticed they are > using Apache::Request versus CGI for form data handling. Why is that? Is > it recommended to use Apache over CGI? Any advantages? I am using CGI > because its a standard module. CGI.pm is old and venerable.

Re: proxy question

2008-01-31 Thread Martin Moss
thanks :) - Original Message From: Heiko Jansen <[EMAIL PROTECTED]> To: Martin Moss <[EMAIL PROTECTED]> Cc: modperl Sent: Thursday, 31 January, 2008 12:28:14 PM Subject: Re: proxy question Am Donnerstag, den 31.01.2008, 11:31 + schrieb Martin Moss: > does mod_proxy provide more th

Re: proxy question

2008-01-31 Thread Heiko Jansen
Am Donnerstag, den 31.01.2008, 11:31 + schrieb Martin Moss: > does mod_proxy provide more than round robin load balancing > functionlity? I'd been told it could, but I can't find anything in the > docs.. Actually this is not the right place to ask about other httpd modules than mod_perl, b

proxy question

2008-01-31 Thread Martin Moss
Hi all, does mod_proxy provide more than round robin load balancing functionlity? I'd been told it could, but I can't find anything in the docs.. Martin __ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com

Re: CGI versus Apache::Request -- confusion

2008-01-31 Thread Anthony Gardner
The request object is used in handlers. You can either write handlers or CGI scripts. Continue using CGI but inorder to reap the benifits of mod-perl, you will need to run it under ModPerl::Registry. In your CGI script, while running under ModPerl::Registry., you even have access to the reque