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 or alike.

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: 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=cpringle&password=x but nothing else. There is no HTTP headers. My Apache directive to enable the filter is Perl

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

2003-09-19 Thread Pringle, Chris (HP-PSG)
PROTECTED] ** *** _/ * -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 o

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 the

[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 b

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.0&CGI > Win2k/IIS5.0&PerlEX > Win2k/Apache1&mod_perl1 > Win2k/Apache2&mod_perl2 > >FreeBSD/Linux/Sun/Apache1&mod_perl1 >FreeBSD/Linux/Sun/Apache2&mod_perl2 >FreeBSD/Linux/Sun/Ap

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.0&PerlEx current is > .40 most likely not thread safe) > GD.pm (Ac

Portability Question

2003-09-08 Thread Philip M. Gollucci
Say I want the same code to work under: Win2k/ISS5.0&CGI Win2k/IIS5.0&PerlEX Win2k/Apache1&mod_perl1 Win2k/Apache2&mod_perl2 FreeBSD/Linux/Sun/Apache1&mod_perl1 FreeBSD/Linux/Sun/Apache2&mod_perl2 FreeBSD/Linux/Sun/Apache1,2&CGI Assume perl 5.6.1 ActiveState on Win2k and perl 5.8.0 on Un

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-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

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 t

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 s

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: [...] 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-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 dat

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: 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 t

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 only

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 h

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 serve

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
> 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-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 char

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 '^]'

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:

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 the

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 HTM

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} = "http://loc

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 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 S

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 H

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 >

Re: Coding Style Question - Using exit

2003-08-18 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;

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 subroutin

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? Than

Re: Question about mod_perl startup script

2003-08-14 Thread Thomas Klausner
Hi! On Wed, Aug 13, 2003 at 09:28:37AM -0700, Wes Plate wrote: > 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. See here for some infos on startup.pl; http:

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 advan

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

2003-07-23 Thread Martin Wickman
On Wed, Jul 23, 2003 at 02:37:30PM +0200, Fatih Gey wrote: > From: "Martin Wickman" <[EMAIL PROTECTED]> [...] > > Nope. When the browser gets a 401 response from the server, it > > will (most likely) pop up a dialog asking the user for name and > > password. These credentials gets mangled into an

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: >

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 nam

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 > > > doe

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

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 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->us

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

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

2003-07-20 Thread Fatih Gey
Hi, i was writing my own AuthHandler with modperl v2 (v1.99_09). Getting the Username/Password-Pair from an html-form (submit via post) and finally checking it against an mysql-table works fine so far. When the authentification have taken place.. the username should be reminded in any way, so the

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: 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 c

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 http://perl.apache.org/docs/1.0/guide/config.ht

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 configurati

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-10 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

Re: mp2: architectural question re authentication handlers

2003-07-10 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 authenticatio

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

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 appear

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

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-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 HTT

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 de

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; require

Re: Question about Apache::Request and query strings

2003-06-26 Thread Swen Schillig
| To: <[EMAIL PROTECTED]> | | cc: | | Subject: Questio

Question about Apache::Request and query strings

2003-06-26 Thread Tom Gazzini
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 simple enough, bu

$apr->param question

2003-06-26 Thread Wes Cravens
I am trying to roll my own parameter collection routines... I am trying this: #Parse / Collect the parameters. my %params; foreach ($apr->param) { if (ref($apr->param($_)) eq "ARRAY") $params{$_} = [$apr->param($_)];

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-

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 f

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

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: [Question] Handler executing twice!?!

2003-03-31 Thread Vince Veselosky
as 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

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 inde

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

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 Apache::ShowReque

[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: < # This declares Apache::Webquills::InitSession::handler PerlRequire /var/www/html/webquills/offline/wq_startup.pl ServerName www.example.com ServerAlias example.com ServerPath /test DocumentRoot /var/www/html/

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 wro

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 erro

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 execut

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: Apache::GD::Thumbnail Question

2003-03-25 Thread Steven A. Adams
On Tue, 2003-03-25 at 18:34, Steven A. Adams wrote: > On Tue, 2003-03-25 at 00:12, Issac Goldstand wrote: > > - Original Message - > .. > > >From the man page: > > "* ThumbnailBaseDir > > Sets the directory that contains the images to be thumbnailed. Defaults to > > ".." if not specifie

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 - .. > >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 wh

Re: Apache::GD::Thumbnail Question

2003-03-24 Thread Issac Goldstand
riginal 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 code in my apach

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 s

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 sys

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: 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 thi

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. > > > > I

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 ta

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

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 forms

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 doe

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 inf

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 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

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

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 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::Cons

Re: Authorization question

2003-02-27 Thread Richard Clarke
request/?foo=bar'); my $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 ques

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' a

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread wsheldah
ject:Upgrading 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: 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 >> >

  1   2   3   4   5   6   7   8   9   10   >