RE: [mp2][QUESTION]: Filter to modify request headers on a proxy server

2003-09-19 Thread Pringle, Chris (HP-PSG)
] ** *** _/ * -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: 18 September 2003 11:37 To: Pringle, Chris (HP-PSG) Cc: [EMAIL PROTECTED] Subject: Re: [mp2][QUESTION]: Filter to modify request headers on a proxy

Re: [mp2][QUESTION]: Filter to modify request headers on a proxy server

2003-09-19 Thread Stas Bekman
Pringle, Chris (HP-PSG) wrote: Hi, I've just tried that script again (see link below) using a POST request. In the error log file, there is the content of the POST Request e.g. user=cpringlepassword=x but nothing else. There is no HTTP headers. My Apache directive to enable the filter is

RE: [mp2][QUESTION]: Filter to modify request headers on a proxy server

2003-09-19 Thread Pringle, Chris (HP-PSG)
Thanks for this. I had put 'PerlInputFilterHandler iPAQApache::ResetBrowser' inside the proxy block, and it should have been outside like you said. _/*** * _/ **Chris Pringle**

Re: [mp2][QUESTION]: Filter to modify request headers on a proxy server

2003-09-19 Thread Stas Bekman
Pringle, Chris (HP-PSG) wrote: Thanks for this. I had put 'PerlInputFilterHandler iPAQApache::ResetBrowser' inside the proxy block, and it should have been outside like you said. So it did work this time, right? Perhaps we should issue a warning if a connection filter is found insider Location or

[mp2][QUESTION]: Filter to modify request headers on a proxy server

2003-09-18 Thread Pringle, Chris (HP-PSG)
Hi, I am trying to write a filter that will sit on a proxy server and alter HTTP requests. Basically, what I want it to do is modify the User-Agent header field so that when the request is proxied, the remote web server gets a different User-Agent header field to the one that was originally sent

Re: [mp2][QUESTION]: Filter to modify request headers on a proxy server

2003-09-18 Thread Stas Bekman
Pringle, Chris (HP-PSG) wrote: Hi, I am trying to write a filter that will sit on a proxy server and alter HTTP requests. Basically, what I want it to do is modify the User-Agent header field so that when the request is proxied, the remote web server gets a different User-Agent header field to

Re: Portability Question

2003-09-09 Thread Perrin Harkins
On Mon, 2003-09-08 at 23:29, Philip M. Gollucci wrote: I haven't really had a hard time with this except: CGI.pm ($query = CGI-new()) What about it? Is it not working? Spreadsheet::WriteExcel (0.26 or less for Win2k/ISS5.0PerlEx current is .40 most likely not thread safe) GD.pm

Re: Portability Question

2003-09-09 Thread Randy Kobes
On Mon, 8 Sep 2003, Philip M. Gollucci wrote: Say I want the same code to work under: Win2k/ISS5.0CGI Win2k/IIS5.0PerlEX Win2k/Apache1mod_perl1 Win2k/Apache2mod_perl2 FreeBSD/Linux/Sun/Apache1mod_perl1 FreeBSD/Linux/Sun/Apache2mod_perl2 FreeBSD/Linux/Sun/Apache1,2CGI

Re: SubRequest in Filter MP2 [QUESTION]

2003-09-05 Thread Craig Shelley
Hello again.. On Thu, 2003-09-04 at 14:21, Geoffrey Young wrote: see Apache::SSI for mp1 - it does exactly what you are trying to do and is subclassable, so you can add your own tags/functionality if you want. That is exactly what I am already doing. When using #exec directive I

Re: SubRequest in Filter MP2 [QUESTION]

2003-09-05 Thread Geoffrey Young
Craig Shelley wrote: Hello again.. On Thu, 2003-09-04 at 14:21, Geoffrey Young wrote: see Apache::SSI for mp1 - it does exactly what you are trying to do and is subclassable, so you can add your own tags/functionality if you want. That is exactly what I am already doing. When using #exec

Re: SubRequest in Filter MP2 [QUESTION]

2003-09-04 Thread Craig Shelley
Hello.. Just Forwarding this to the list Having no idea as to how the internals of modperl and apache actually work, this may seem like a bit of a dumb suggestion. When doing a subrequest from within a filter, the most ideal situation would be to have access to the output from within the

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-29 Thread Craig Shelley
Hi All, On Wed, 2003-08-27 at 02:33, Geoffrey Young wrote: hi craig. before we continue, please try the latest cvs (without the patch I sent) and see if your stuff segfaults there. if not, at least we know we've isolated the segfault and just have bad logic to fix :) Well: It seg

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-27 Thread Geoffrey Young
Craig Shelley wrote: MP_AP_PREFIX = /home/craig/temp/mod_perl-1.99_09/ hi craig. before we continue, please try the latest cvs (without the patch I sent) and see if your stuff segfaults there. if not, at least we know we've isolated the segfault and just have bad logic to fix :) if

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-27 Thread Stas Bekman
Geoffrey Young wrote: Stas Bekman wrote: Craig Shelley wrote: I'll take a look at it. But you didn't supply a complete bug report as explained http://perl.apache.org/bugs/. Please do so. I think I've got this figured out. the problem is with the r-main logic in mpxs_ap_run_sub_req. with

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-27 Thread Geoffrey Young
however, removing that logic causes api/lookup_uri2.t to fail, but I suspect this is an issue with puts() rather than the subrequest mechanism - changing puts() to print() makes everything work just fine. does puts() write directly to the wire, bypassing filters? Sorry, but that's cheating

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-27 Thread Stas Bekman
Geoffrey Young wrote: the problem is with the r-main logic in mpxs_ap_run_sub_req. with that logic, what ends up happening is that the data currently being operated on is explicity flushed. this is bad within a (streaming) filter where you are expected to call $f-print yourself, as the data

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-27 Thread Stas Bekman
Geoffrey Young wrote: [...] as I said, nowhere in any of the module shipped with core do I find logic like this - mod_include and mod_cgi both seem to call ap_run_sub_req without flushing the main data stream (though mod_include does split the stream and send the data _prior to the tag_ off).

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-26 Thread Craig Shelley
I'll take a look at it. But you didn't supply a complete bug report as explained http://perl.apache.org/bugs/. Please do so. Hi, Here is that bug report related to the earlier postings. -8-- Start Bug Report 8-- 1. Problem Description:

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-26 Thread Stas Bekman
Craig Shelley wrote: I'll take a look at it. But you didn't supply a complete bug report as explained http://perl.apache.org/bugs/. Please do so. Here is that bug report related to the earlier postings. -8-- Start Bug Report 8-- 1. Problem Description:

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-26 Thread Craig Shelley
On Tue, 2003-08-26 at 19:03, Stas Bekman wrote: Thanks, but you have missed the core dump's backtrace. I am sorry but I have never used core files before, so forgive me if I have done this all wrong. I configured apache to only have one server process. Then using gdb, I connected to the

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-26 Thread Stas Bekman
Craig Shelley wrote: On Tue, 2003-08-26 at 19:03, Stas Bekman wrote: Thanks, but you have missed the core dump's backtrace. I am sorry but I have never used core files before, so forgive me if I have done this all wrong. No worries, this task is not trivial. Your trace is almost perfect. The

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-26 Thread Geoffrey Young
Stas Bekman wrote: Craig Shelley wrote: I'll take a look at it. But you didn't supply a complete bug report as explained http://perl.apache.org/bugs/. Please do so. I think I've got this figured out. the problem is with the r-main logic in mpxs_ap_run_sub_req. with that logic, what ends up

SubRequest in Filter MP2 [QUESTION]

2003-08-25 Thread Craig Shelley
Hello, I am a newbie to this list, so please forgive me if this is not the place where I should asking this question. I am writing a filter module for MP2 that will parse its input for certain embedded commands. One of these commands should cause the filter to issue a SubRequest to get

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-25 Thread Geoffrey Young
my $rr = $f-r-lookup_uri(subrequest.txt); #$rr-run; For some reason, the server segfaults when the above code is run (with the $rr-run line present) does anything change if you use $rr = $f-$r-lookup_uri(subrequest.txt, $f-next); ? --Geoff -- Reporting bugs:

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-25 Thread Craig Shelley
does anything change if you use $rr = $f-$r-lookup_uri(subrequest.txt, $f-next); No it doesn't seem any different, the server still seg faults. When it does this, it produces no output at all. telnet 127.0.0.1 80 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. GET /

Re: SubRequest in Filter MP2 [QUESTION]

2003-08-25 Thread Stas Bekman
Craig Shelley wrote: does anything change if you use $rr = $f-$r-lookup_uri(subrequest.txt, $f-next); No it doesn't seem any different, the server still seg faults. When it does this, it produces no output at all. telnet 127.0.0.1 80 Trying 127.0.0.1... Connected to 127.0.0.1. Escape

Re: Apache 2.0, mod_perl filter question

2003-08-22 Thread Ilia Rassadzin
Hello, I am trying to filter DECRYPTED, PLAIN TEXT data. I attached my two configuration files. If more information needed i can send my logs. Ideally I want to make a setup where encryption/decryption being done twice in order to filter DECRYPTED, PLAIN TEXT data(correct me if I am wrong) Like

Re: Apache 2.0, mod_perl filter question

2003-08-22 Thread Stas Bekman
Ilia Rassadzin wrote: Hello, I am trying to filter DECRYPTED, PLAIN TEXT data. I attached my two configuration files. If more information needed i can send my logs. Ideally I want to make a setup where encryption/decryption being done twice in order to filter DECRYPTED, PLAIN TEXT data(correct me

Re: Apache 2.0, mod_perl filter question

2003-08-22 Thread Gedanken
To the best of my knowledge, the 'proxy' that is used in LWP still cannot support CONNECT style SSL proxies, meaning its very hit or miss if it works - roughly 50/50 for the few hundred proxies ive checked recently. try replacing *all* your $UA-proxy lines with $ENV{HTTPS_PROXY} =

Re: Apache 2.0, mod_perl filter question

2003-08-22 Thread Ilia Rassadzin
/modify HTML passed over SSL in case of GET (working on POST at this time) with a given setup: SSL-unaware browser - mod_proxy+mod_ssl+mod_perl - SSL server this question should probably be like 'How to setup Apache + mod_ssl + mod_proxy + mod_perl to make filtering of plain HTML passed over SSL

Re: Apache 2.0, mod_perl filter question

2003-08-21 Thread Stas Bekman
Ilia Rassadzin wrote: Hello mod_perl, I have some problems with filtering HTTPS traffic. I modified for my needs FilterSnoop module from Stas Bekman filter tutorial. It perfectly sees HTTP data, but not HTTPS. Does anyone have any suggestions(ideas) about how to implement a filter which will see

Re: Coding Style Question - Using exit

2003-08-19 Thread Thomas Klausner
Hi! On Mon, Aug 18, 2003 at 08:07:30 -0400, Chris Faust wrote: Example To Help Explain: sub handler { $r = shift; init_global_vals(); $back_url = determine_proper_action(); my $back_url = ; $r-headers_out-set(Location = $back_url); return Apache::REDIRECT; } Why not let

Re: Coding Style Question - Using exit

2003-08-19 Thread Chris Faust
Thanks for the reply Thomas, Why not let determine_proper_action() return undef (or OK, or whatever) if you do not want to redirect? And in your handler do: my $rv=determine_proper_action(); if ($rv) { # or ($rv == Apache::Constants::OK) # redirect } else # done } One

Coding Style Question - Using exit

2003-08-18 Thread Chris Faust
Folks, In the continuing effort to make my code better, I'm trying to get rid"exit" in my scripts and clean up some things that just don't sit well (but they work). Almost 95% of my pages are served up via a template system (H::T) and the rest are a redirects. Currently I use a subroutine

Question about mod_perl startup script

2003-08-14 Thread Wes Plate
I am getting up and running a server that wants mod_perl. The instructions talks about a startup script. I'm very new, so I don't know how I'm supposed to get this step completed. Do I copy the provided script to a location? Do I edit an existing script? Do I edit some configuration file?

Apache 2.0, mod_perl filter question

2003-08-12 Thread Ilia Rassadzin
Hello mod_perl, I have some problems with filtering HTTPS traffic. I modified for my needs FilterSnoop module from Stas Bekman filter tutorial. It perfectly sees HTTP data, but not HTTPS. Does anyone have any suggestions(ideas) about how to implement a filter which will see HTTPS? Thanks in

Re: [QUESTION] Can't read out verified username (auth)

2003-07-23 Thread Fatih Gey
- Original Message - From: Martin Wickman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:41 PM Subject: Re: [QUESTION] Can't read out verified username (auth) On Mon, Jul 21, 2003 at 12:36:55PM +0200, Fatih Gey wrote: On Mon, Jul 21, 2003 at 01:05:58AM +0200

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Martin Wickman
On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] After having entered user/pass via html-form, this authentification does his job well, but on the following request (on same browser) $obj-user doesnt seem to

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Fatih Gey
On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] After having entered user/pass via html-form, this authentification does his job well, but on the following request (on same browser) $obj-user doesnt seem

Question to mod_perl gurus. Take 1 minute. Just choose right answer from list!

2003-07-21 Thread
Hi, recently I got in trouble with old Apache::ePerl module (I know there a lot of better html toolkits, but this one is suits for my WAP-related tasks) so the question: we have package, handler for *.perl-embed files package Apache::ePerl; use vars qw ($Cache); $Cache = {}; sub handler

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Thomas Klausner
Hi! On Mon, Jul 21, 2003 at 12:36:55 +0200, Fatih Gey wrote: I supposed the browser to resend always an unique bowser session id, which is used by apache to save certain values, like $ENV{'REMOTE_USER'} (similiar to a session-cookie with uid and serverbased $vars) .. Isn't this the way Basic

Re: [QUESTION] Can't read out verified username (auth)

2003-07-21 Thread Martin Wickman
On Mon, Jul 21, 2003 at 12:36:55PM +0200, Fatih Gey wrote: On Mon, Jul 21, 2003 at 01:05:58AM +0200, Fatih Gey wrote: i was writing my own AuthHandler with modperl v2 (v1.99_09). [...] After having entered user/pass via html-form, this authentification does his job well, but

Re: Question to mod_perl gurus. Take 1 minute. Just choose rightanswer from list!

2003-07-21 Thread Perrin Harkins
On Mon, 2003-07-21 at 07:31, wrote: so the question: which sub main_deck will be executed? 1. Hi, it's SCRIPT_1! 2. Bye, it was SCRIPT_2! I think #2, because it was the last one eval'ed, and you can only have one sub with a given name in one package namespace. Apache::ePerl does

Another newbie question: SetPerlVar

2003-07-17 Thread Walter H. van Holst
Hello, If I use SetPerlVar in my apache-perl httpd.conf by just plainly stating. SetPerlVar Foo Bar Apache-perl won't start: Syntax error on line xxx of /etc/apache-perl/httpd.conf: Invalid command 'SetPerlVar', perhaps mis-spelled or defined by a module not included in the server

Re: Another newbie question: SetPerlVar

2003-07-17 Thread Haroon Rafique
On Today at 6:47pm, WHvH=Walter H. van Holst [EMAIL PROTECTED]...: WHvH Hello, WHvH WHvH If I use SetPerlVar in my apache-perl httpd.conf by just plainly WHvH stating. WHvH WHvH SetPerlVar Foo Bar WHvH Try PerlSetVar instead. For 1.0

Re: Another newbie question: SetPerlVar

2003-07-17 Thread Frank Wiles
On 17 Jul 2003 18:47:06 +0200 Walter H. van Holst [EMAIL PROTECTED] wrote: Hello, If I use SetPerlVar in my apache-perl httpd.conf by just plainly stating. SetPerlVar Foo Bar Apache-perl won't start: Syntax error on line xxx of /etc/apache-perl/httpd.conf: Invalid command

Re: Another newbie question: SetPerlVar

2003-07-17 Thread Walter H. van Holst
On Thu, 2003-07-17 at 18:56, Frank Wiles wrote: What is the obvious thing I am overlooking? It's PerlSetVar not SetPerlVar. * Blush * Thanks. Regards, Walter -- All things that are, are with more spirit chased than enjoyed. -- Shakespeare, Merchant of Venice

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: mp2: architectural question re authentication handlers

2003-07-11 Thread Cees Hek
Quoting Carl Brewer [EMAIL PROTECTED]: Forgive me for asking yet another fundamentally basic question. I'm cutting a web app over from PHP to mod_perl 2, and am wondering how 'best' (for which there are many flavours ...) to handle authentication. At present I've knocked up a site

Re: mp2: architectural question re authentication handlers

2003-07-11 Thread Carl Brewer
Cees Hek wrote: [chomp] Thanks Cees, that's exactly what I needed :) My stuff is all completely generated by scripts where I need access control, but I certainly see the use for controlling static entity access. Carl

mp2: architectural question re authentication handlers

2003-07-10 Thread Carl Brewer
Forgive me for asking yet another fundamentally basic question. I'm cutting a web app over from PHP to mod_perl 2, and am wondering how 'best' (for which there are many flavours ...) to handle authentication. At present I've knocked up a site that does auth via a form and state tracking

Re: Newbie question about mod_perl capabilities

2003-07-08 Thread Matt Sergeant
On Monday, Jul 7, 2003, at 20:50 Europe/London, Ged Haywood wrote: On 7 Jul 2003, Walter H. van Holst wrote: I am new to mod_perl and am trying to figure out whether it suits my needs or not. Can I use it to intercept any http CONNECT requests Apache receives and answer those? The concept of a

Re: Newbie question about mod_perl capabilities

2003-07-08 Thread Walter H. van Holst
On Tue, 2003-07-08 at 10:14, Matt Sergeant wrote: Sorry Ged, Walter is talking about CONNECT which is a proxy request. It goes in place of GET or POST in the request line: CONNECT mail.openrelay.com:25 HTTP/1.1 I *think* mod_perl will be able to intercept this, but I've never tried it.

Re: Newbie question about mod_perl capabilities

2003-07-08 Thread Ged Haywood
Hi there, On 8 Jul 2003, Walter H. van Holst wrote: On Tue, 2003-07-08 at 10:14, Matt Sergeant wrote: Sorry Ged, Walter is talking about CONNECT which is a proxy request. Argh. :) Well, thanks to a someone on IRC I have found a code snippet that might do exactly that. So it appears

Newbie question about mod_perl capabilities

2003-07-07 Thread Walter H. van Holst
Hi, I am new to mod_perl and am trying to figure out whether it suits my needs or not. Can I use it to intercept any http CONNECT requests Apache receives and answer those? Regards, Walter -- Like almost everyone, I receive a lot of spam every day, much of it offering to help me get out of

Re: Newbie question about mod_perl capabilities

2003-07-07 Thread Ged Haywood
Hi there, On 7 Jul 2003, Walter H. van Holst wrote: I am new to mod_perl and am trying to figure out whether it suits my needs or not. Can I use it to intercept any http CONNECT requests Apache receives and answer those? The concept of a connection is at the transport level, way below HTTP.

Re: Stupid question of the day...

2003-06-29 Thread Shannon Eric Peevey
Randy Kobes wrote: On Wed, 25 Jun 2003 [EMAIL PROTECTED] wrote: I've built and installed a new Apache (2.0.46) with mod_ssl and mod_perl... My goal is authentication via NIS, so I have the following in an .htaccess file: AuthName TEST AuthType Basic PerlAuthenHandler Apache::AuthenNIS;

Re: Question about Apache::Request and query strings

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

Stupid question of the day...

2003-06-25 Thread cwh0803
All- I've built and installed a new Apache (2.0.46) with mod_ssl and mod_perl... My goal is authentication via NIS, so I have the following in an .htaccess file: AuthName TEST AuthType Basic PerlAuthenHandler Apache::AuthenNIS; require valid-user My efforts, however, have been thwarted by the

Re: Stupid question of the day...

2003-06-25 Thread Randy Kobes
On Wed, 25 Jun 2003 [EMAIL PROTECTED] wrote: I've built and installed a new Apache (2.0.46) with mod_ssl and mod_perl... My goal is authentication via NIS, so I have the following in an .htaccess file: AuthName TEST AuthType Basic PerlAuthenHandler Apache::AuthenNIS; require valid-user

install upgrade for mod_perl+apache 2.046 onto apache 2.044 question

2003-06-08 Thread dan martin
I have apache 2.044 installed on win2k. I want to install the mod_perl which comes with apache included (version 2.046).What do I need to do with the current 2.044 version before installing the new version? Do I uninstall it, stop it, or nothing?Once I install the new version what are the steps to

Re: install upgrade for mod_perl+apache 2.046 onto apache 2.044 question

2003-06-08 Thread Beau E. Cox
Hi - - Original Message - From: dan martin To: [EMAIL PROTECTED] Sent: Sunday, June 08, 2003 11:08 AM Subject: install upgrade for mod_perl+apache 2.046 onto apache 2.044 question I have apache 2.044 installed on win2k. I want to install the mod_perl

Re: [Question] Handler executing twice!?!

2003-03-31 Thread Vince Veselosky
was an index.pl file. When called as example.com/index.pl, everything worked as expected, but when called as example.com/, apache (or something) generated a subrequest for index.pl. NOW my question is, why does apache generate the subrequest *after* the HeaderParser phase, causing it to execute twice

Re: [Question] Handler executing twice!?!

2003-03-30 Thread Stas Bekman
Vince Veselosky wrote: [...] Now here is the thing. The PerlHeaderParserHandler executes TWICE for every request. The second time through is apparently a different Apache Could it be that something in your code pushes the handler on the stack again? I'd suggest debugging with

Re: [Question] Handler executing twice!?!

2003-03-30 Thread Vince Veselosky
Whew, okay, I have an answer, but I also still have a question. The short explanation: The bug in my code was the fact that I forgot that a request might also be a subrequest, so now I check if the request is_initial_req and short circuit if not. (And a tiny bug in my trace code caused my

Re: [Question] Handler executing twice!?!

2003-03-30 Thread Stas Bekman
Vince Veselosky wrote: [...] The thing that triggered it was the fact that the url was an index.pl file. When called as example.com/index.pl, everything worked as expected, but when called as example.com/, apache (or something) generated a subrequest for index.pl. NOW my question is, why does

[Question] Handler executing twice!?!

2003-03-28 Thread Vince Veselosky
I'm hoping someone can explain this one to me. I have a virtual host set up like so: VHOST # This declares Apache::Webquills::InitSession::handler PerlRequire /var/www/html/webquills/offline/wq_startup.pl VirtualHost * ServerName www.example.com ServerAlias example.com ServerPath /test

Fw: Apache::GD::Thumbnail Question

2003-03-27 Thread Issac Goldstand
Forgive my use of the list if this is a tad OT - but I seem to not be able to contact Steven directly all of the sudden (my ISP got but on a RBL, I think, and it will take them another bit to get off - that's why it took so long, Steven) Issac On Tue, 2003-03-25 at 00:12, Issac Goldstand

Another wicked mod_perl question :)

2003-03-26 Thread Jean-Michel Hiver
Hi List, I know that it's possible to chain Apache handlers in a way that the next handler is executed if the previous handler returned DECLINED. I would like to have the following execution chain: Handler1 Handler2 ... HandlerN CGI script (running either as pure CGI or under Apache::Registry).

Re: Another wicked mod_perl question :)

2003-03-26 Thread Perrin Harkins
Jean-Michel Hiver wrote: I know that it's possible to chain Apache handlers in a way that the next handler is executed if the previous handler returned DECLINED. It sound like you're looking for this: http://perl.apache.org/docs/1.0/guide/config.html#Stacked_Handlers The next handler is also

Re: Apache::GD::Thumbnail Question

2003-03-26 Thread Steven A. Adams
Any word on this Issac? Are you as stumped as I am? I dug into it again today and verified that the jpeg, png and freetype2 libraries were installed and verified that they functioned. I also did a complete rebuild of GD and a CPAN force install on Apache::GD::Thumbnail - all went well with no

Re: Apache::GD::Thumbnail Question

2003-03-25 Thread Steven A. Adams
On Tue, 2003-03-25 at 00:12, Issac Goldstand wrote: - Original Message - ...snip... From the man page: * ThumbnailBaseDir Sets the directory that contains the images to be thumbnailed. Defaults to .. if not specified Since the virtual directory /home/me/pics/thumbs/../ is where the

Re: Apache::GD::Thumbnail Question

2003-03-24 Thread Issac Goldstand
that it only works on JPEGs. Issac - Original Message - From: Steven A. Adams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:06 AM Subject: Apache::GD::Thumbnail Question Does anyone use this handler to make on-the-fly thumbs? I've used the standard example

Apache::GD::Thumbnail Question

2003-03-23 Thread Steven A. Adams
Does anyone use this handler to make on-the-fly thumbs? I've used the standard example code in my apache (1.3.27 with MP1) and it seems to ignore the handler. Any suggestions? -- Steven A. Adams [EMAIL PROTECTED]

Re: Job tracking and publishing question.

2003-03-12 Thread Perrin Harkins
Thomas Whitney wrote: I was looking at Bricolage, however it appears to be more suited to text content publishing. I currently use Template::Toolkit to print out the bids and I imagine I could do all the programming myself--naturally, it would be helpful to find some package that suited at least

Job tracking and publishing question.

2003-03-11 Thread Thomas Whitney
Hi, I want to implement a job tracking and database publishing system and hoping for some assistance. My company does short run 4 color digital printing. Because it is short urn we handle multiple jobs every day. I developed an online bidding system; it use Apache, mod_perl, and mysql. Now I

Re: Job tracking and publishing question.

2003-03-11 Thread Les Mikesell
From: Thomas Whitney [EMAIL PROTECTED] I want to implement a job tracking and database publishing system and hoping for some assistance. My company does short run 4 color digital printing. Because it is short urn we handle multiple jobs every day. I developed an online bidding system; it

Authorization question

2003-02-27 Thread Jean-Michel Hiver
Hi List, In theory Authentication / Authorization handlers are very cool, because the application underneath it doesn't need to know the logic of it, and as long as you design web applications with nice, RESTful, sensible URIs it would all work beautifully. BUT, I cannot figure out how to 'ask'

Re: Authorization question

2003-02-27 Thread Richard Clarke
$status = $subr-status; my $ok = $status==AUTH_REQUIRED ? 0:1; Ric. - Original Message - From: Jean-Michel Hiver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 10:42 AM Subject: Authorization question Hi List, In theory Authentication / Authorization

Re: Authorization question

2003-02-27 Thread Jean-Michel Hiver
On Thu 27-Feb-2003 at 11:39:32AM -, Richard Clarke wrote: I've never had any reason to do this so there might be a shortcut but I think something along the lines of the following should work (As long as your access/auth handler doesnt make use of $r-is_intial_req()) use Apache::Constants

Re: Authorization question

2003-02-27 Thread Geoffrey Young
Jean-Michel Hiver wrote: On Thu 27-Feb-2003 at 11:39:32AM -, Richard Clarke wrote: I've never had any reason to do this so there might be a shortcut but I think something along the lines of the following should work (As long as your access/auth handler doesnt make use of $r-is_intial_req())

Re: Authorization question

2003-02-27 Thread Nick Tonkin
On Thu, 27 Feb 2003, Jean-Michel Hiver wrote: Hi List, In theory Authentication / Authorization handlers are very cool, because the application underneath it doesn't need to know the logic of it, and as long as you design web applications with nice, RESTful, sensible URIs it would all work

Re: Authorization question

2003-02-27 Thread Nick Tonkin
On Thu, 27 Feb 2003, Geoffrey Young wrote: I've decided that the return DECLINED if $r-is_inital_req; bit is a bad idea. after a few hours debugging an authorization application, I realized that this does nothing but cause problems - if you DECLINE a subrequest then it's picked up by

Re: Authorization question

2003-02-27 Thread Geoffrey Young
but DECLINED is almost certainly a bad idea. What was the idea behind return DECLINED if $r-is_inital_req; in auth handlers in the first place? I think it stems from the Eagle book, thus from Doug, but I'm not sure - I can't remember exactly. it was probably an attempt to reduce overhead for

Re: Authorization question

2003-02-27 Thread Jean-Michel Hiver
I think this may be solved by architecture. If you have an Authz layer maybe it needs to be called sooner than right when you need it. I have a Session-based auth system. When the user successfully authenticates the Auth handler does a lookup in a db where we store all users' authz

Re: Authorization question

2003-02-27 Thread Nick Tonkin
On Thu, 27 Feb 2003, Jean-Michel Hiver wrote: I think this may be solved by architecture. If you have an Authz layer maybe it needs to be called sooner than right when you need it. I have a Session-based auth system. When the user successfully authenticates the Auth handler does a

Re: Authorization question

2003-02-27 Thread Perrin Harkins
Jean-Michel Hiver wrote: Yes, but you're then making the authorization layer inseparable from your applicative layer, and hence you loose the interest of using separate handlers. It's pretty hard to truly separate these things. Nobody wants to use basic auth, which means there is a need for

Re: Authorization question

2003-02-27 Thread Bill Moseley
On Thu, 27 Feb 2003, Perrin Harkins wrote: Jean-Michel Hiver wrote: Yes, but you're then making the authorization layer inseparable from your applicative layer, and hence you loose the interest of using separate handlers. It's pretty hard to truly separate these things. Nobody wants to

Re: Authorization question

2003-02-27 Thread Jean-Michel Hiver
It's pretty hard to truly separate these things. Nobody wants to use basic auth, which means there is a need for forms and handlers. How do you mean, 'nobody'? Users certainly don't mind! Then you have to keep that information in either cookies or URLs, and there is usually a need to talk

Re: Authorization question

2003-02-27 Thread Nick Tonkin
On Thu, 27 Feb 2003, Bill Moseley wrote: On Thu, 27 Feb 2003, Perrin Harkins wrote: Jean-Michel Hiver wrote: Yes, but you're then making the authorization layer inseparable from your applicative layer, and hence you loose the interest of using separate handlers. It's pretty hard

Re: Authorization question

2003-02-27 Thread Perrin Harkins
Jean-Michel Hiver wrote: It's pretty hard to truly separate these things. Nobody wants to use basic auth, which means there is a need for forms and handlers. How do you mean, 'nobody'? Users certainly don't mind! Sure they do. They want a nice HTML login screen, and features like remember

Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread Gazi, Nasser (London)
Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to Perl/5.8.0 will I have to upgrade mod_perl to a newer version as well? Thanks, NG

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread Sven Geisler
Hi, mod_perl 1.27 is the latest stable version of mod_perl 1. You're fine. Regards, Sven. Am Mon, 2003-02-24 um 12.24 schrieb Gazi, Nasser (London): Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to Perl/5.8.0

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread David Wright
Hi, mod_perl 1.27 is the latest stable version of mod_perl 1. You're fine. Regards, Sven. Am Mon, 2003-02-24 um 12.24 schrieb Gazi, Nasser (London): Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade

RE: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread Gazi, Nasser (London)
Hi, mod_perl 1.27 is the latest stable version of mod_perl 1. You're fine. Regards, Sven. Am Mon, 2003-02-24 um 12.24 schrieb Gazi, Nasser (London): Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread wsheldah
to perl 5.8.0 (newbie question) Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to Perl/5.8.0 will I have to upgrade mod_perl to a newer version as well? Thanks, NG

Re: Help installing mod_perl 1.27 and apache 1.3.27. newbie question.

2003-02-20 Thread Cory 'G' Watson
On Thursday, February 20, 2003, at 08:13 AM, Charlie Smith wrote: I get errors on installing mod_perl/Apache 1.3.27, under the root account when running perl Makefile.PL. I'm running perl 5.8 on solaris. gcc 2.95.     # # # perl Makefile.PL Configure mod_perl with ../apache_1.3.27/src ? [y]

RE: Help installing mod_perl 1.27 and apache 1.3.27. newbie question.

2003-02-20 Thread Martin Scantland
: Thursday, February 20, 2003 9:14 AMTo: [EMAIL PROTECTED]Subject: Help installing mod_perl 1.27 and apache 1.3.27. newbie question. I get errors on installing mod_perl/Apache 1.3.27, under the root account when running perl Makefile.PL. I'm running perl 5.8 on solaris. gcc 2.95

Re: mod_perl 2.0 question about $r-connection-auth_type

2003-02-19 Thread Geoffrey Young
I've just about got the Apache::AuthCookieDBI to work with Apache 2.0.44 mod_perl 1.99_09-dev, but I ran into a problem with the $r-connection object not having auth_type or user defined. The $r-auth_type work just fine. Are these the same reference? What should I look for, or use? [snip]

Re: Semi-complicated question: modifying the content of a requestbefore passing to CGI?

2003-02-17 Thread Stas Bekman
great big stormclouds of doom closing in :-) Your task is pretty trivial, so you should be fine. Seldo. P.S. I only recently noticed that Stas, who helped me out with my last question, is listed as the author/maintainer of the 2.0 documentation. Cool! :-) Hopefully this will change asap

  1   2   3   4   5   6   7   8   9   10   >