Re: cookies and IE

2002-10-02 Thread Sven Geisler
Hi Alan, Hi Kee, I would say Kee is wrong. In our application, the development of which I am involved in, for a special case we need to write a cookie and redirect to another page. So we use Apache::Cookie to write the cookie and http redirect. Cookie is always set. I changed the http redirec

default-handler ignored if url points to a directory

2002-10-02 Thread [EMAIL PROTECTED]
Hi on win32 perl 561 with last modperl when a location is reset to default-handler and no real file is called but just a directory, modperl does not pass on to default (and to mod_dir for indexing of the directory). url /stylesheets/style.css triggers the default handler properly, but not /sty

Re: cookies and IE

2002-10-02 Thread Per Einar Ellefsen
At 09:02 02.10.2002, Alan wrote: >On Tue, Oct 01, 2002 at 07:23:39PM -0400, Kee Hinckley wrote: > > At 11:30 AM -0700 10/1/02, Alan wrote: > > >Hi folks... I'm having a bit of a weird problem with Apache::Cookie and > > >IE. > > > > > >I'm setting a cookie and then doing a redirect as follows: > >

Re: cookies and IE

2002-10-02 Thread Nicholas Studt
> Alan wrote [ 01 October 2002 at 03:09 pm ] > > On Tue, Oct 01, 2002 at 11:30:59AM -0700, Alan wrote: > > Turns out the issue was the 'expires' tag... IE wouldn't set the cookie > until it was set to '+1d' If setting the expires tag to +1d fixed the problem you may want to look at the time on

mod_perl Windows 2000 install notes

2002-10-02 Thread Larry Leszczynski
Hi Randy - Just wanted to send along some info that might be useful to add as a Windows installation note in the mod_perl guide. The short story is: You may need to shut down and restart your machine after installing to get things to start working! I've been trying to install on Windows

Re: cookies and IE

2002-10-02 Thread Alan
On Wed, Oct 02, 2002 at 08:15:23AM -0500, Nicholas Studt wrote: > > Alan wrote [ 01 October 2002 at 03:09 pm ] > > > > On Tue, Oct 01, 2002 at 11:30:59AM -0700, Alan wrote: > > > > Turns out the issue was the 'expires' tag... IE wouldn't set the cookie > > until it was set to '+1d' > > If setti

[BUG] Losing GET/POST-data

2002-10-02 Thread Hakan Nilsson
Hi! We're developing a perl module for apache/mod_perl, but have encountered a really strange problem. After 'a while' we seem to lose the data sent to the apache-server, at least it never reaches our module. We have absolutely no idea what might be causing this, and we realize it isn't an eas

Re: [BUG] Losing GET/POST-data

2002-10-02 Thread Wes Cravens
On 02 Oct 2002 15:23 GMT you wrote: > > Hi! > > We're developing a perl module for apache/mod_perl, but have encountered a > really strange problem. > > After 'a while' we seem to lose the data sent to the apache-server, at > least it never reaches our module. > Recently we switched from us

Easy internal redirect question

2002-10-02 Thread FFabrizio
I call a page, /my/script1?task=foo which does some things and then needs to redirect to /my/script2?task=bar. However, putting $r->internal_redirect('/my/script2?task=bar'); doesn't seem to work as script2 is seeing task=foo rather than task=bar. Looks like the internal_redirect is also pass

Re: Easy internal redirect question

2002-10-02 Thread Geoffrey Young
[EMAIL PROTECTED] wrote: > I call a page, /my/script1?task=foo which does some things and then needs to > redirect to /my/script2?task=bar. However, putting > > $r->internal_redirect('/my/script2?task=bar'); > > doesn't seem to work as script2 is seeing task=foo rather than task=bar. > Looks

Re: cookies and IE

2002-10-02 Thread Geoffrey Young
> But when it's set to "3d" the cookie is set as: > Set-Cookie=name=value; path=/path; expires=3d > > Which makes sense, but it's a very subtle thing IMHO, and to me "1d" > means "expire in one day", the same as "+1d". > > Anything think that this deserves a bug report, or chalk it up to stupi

Re: cookies and IE

2002-10-02 Thread Alan
On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > so, it's not really a bug if you dig down into the docs and examples. > looks like a feature, though :) Agreed... more of a 'gotcha' though, ready to bite people in the butt. Personally I think it might make more sense to do a ch

ProxyRewrite configuration

2002-10-02 Thread rodneyr
The problem was solved when I set the Apache Servername parameter to the IP address of the Proxy Server. But I don't understand why the ProxyRewrite module doen't change the URL to what we want. It changes it only to "/". Thanks, -

Re: cookies and IE

2002-10-02 Thread Per Einar Ellefsen
At 20:12 02.10.2002, Alan wrote: >On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > > so, it's not really a bug if you dig down into the docs and examples. > > looks like a feature, though :) > >Agreed... more of a 'gotcha' though, ready to bite people in the butt. >Personally I t

Re: problems with sessions and upgrading

2002-10-02 Thread ___cliff rayman___
Gerald Richter wrote: > > OLD STUFF: redhat 5.2, 2.0.36 kernel, 1.3.6 apache, 1.21 mod_perl, > > perl 5.005_02, apache session 1.04 and a storable of 0.63, embperl > 1.2.b10, > > file system sessions and locking data. > > > > NEW STUFF: redhat 5.2, 2.0.36 kernel, 1.3.26 apache, 1.27 mod_perl,

passing an object to a handler

2002-10-02 Thread william ross
hello, I've been off-list for a while, so please forgive (and direct) me if this is a tired subject. In short, i'd like to pass through another object on method invocation, in addition to the apache request. Ideally the (method)handler would look something like: sub handler ($$$) { m

Re: cookies and IE

2002-10-02 Thread Alan
On Wed, Oct 02, 2002 at 08:30:54PM +0200, Per Einar Ellefsen wrote: > At 20:12 02.10.2002, Alan wrote: > >On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > >> so, it's not really a bug if you dig down into the docs and examples. > >> looks like a feature, though :) > > > >Agreed..

Re: passing an object to a handler

2002-10-02 Thread Per Einar Ellefsen
At 20:47 02.10.2002, william ross wrote: >hello, > >I've been off-list for a while, so please forgive (and direct) me if this >is a tired subject. > >In short, i'd like to pass through another object on method invocation, in >addition to the apache request. Ideally the (method)handler would look

RE: Easy internal redirect question

2002-10-02 Thread FFabrizio
I've got a bit of a better grasp on the problem nowI think it's an interaction with POST data... I have a form in foo.html ...other form fields... I submit this form, and in /rms/admin, it gets handled like this # suck in form values, stick them in objects, blah blah, then get

Re: passing an object to a handler

2002-10-02 Thread william ross
On Wednesday, October 2, 2002, at 08:18 PM, Per Einar Ellefsen wrote: > At 20:47 02.10.2002, william ross wrote: >> but I can't find anything to tell me how to do it. I feel sure I'm >> missing something really obvious here? > > You can configure objects instead of using static class names. See

Re: passing an object to a handler

2002-10-02 Thread Per Einar Ellefsen
At 21:30 02.10.2002, william ross wrote: >On Wednesday, October 2, 2002, at 08:18 PM, Per Einar Ellefsen wrote: > >>At 20:47 02.10.2002, william ross wrote: >>>but I can't find anything to tell me how to do it. I feel sure I'm >>>missing something really obvious here? >> >>You can configure obje

Re: passing an object to a handler

2002-10-02 Thread Dave Rolsky
On Wed, 2 Oct 2002, william ross wrote: > sorry: i wasn't very clear, was I? I am using a method handler, but I > want to pass an object of another class to it each time it is called. > The object needs to be created outside of an individual request, and > therefore presumably in a startup file,

Re: passing an object to a handler

2002-10-02 Thread william ross
On Wednesday, October 2, 2002, at 08:37 PM, Per Einar Ellefsen wrote: > At 21:30 02.10.2002, william ross wrote: > >> On Wednesday, October 2, 2002, at 08:18 PM, Per Einar Ellefsen wrote: >> >>> At 20:47 02.10.2002, william ross wrote: but I can't find anything to tell me how to do it. I fe

Re: mod_perl Windows 2000 install notes

2002-10-02 Thread Randy Kobes
On Wed, 2 Oct 2002, Larry Leszczynski wrote: > Just wanted to send along some info that might be useful to add as a > Windows installation note in the mod_perl guide. The short story is: > >You may need to shut down and restart your machine after installing to >get things to start worki

Re: mod_perl Windows 2000 install notes

2002-10-02 Thread Issac Goldstand
It's needed, for example, to enable the system-wide PATH to include \Perl\bin in it, which is needed to load mod_perl.so into the server when running as a system service. Note that you can still go to a command shell, add perl\bin to the path and manually start apache from the command shell - tha

Re: passing an object to a handler

2002-10-02 Thread william ross
On Wednesday, October 2, 2002, at 09:11 PM, Dave Rolsky wrote: > On Wed, 2 Oct 2002, william ross wrote: > >> sorry: i wasn't very clear, was I? I am using a method handler, but I >> want to pass an object of another class to it each time it is called. >> The object needs to be created outside o

Re: passing an object to a handler

2002-10-02 Thread Dave Rolsky
On Wed, 2 Oct 2002, william ross wrote: > I did have it set up that way at one point. it worked quite nicely as > long as I made the singleton in a subclass of the main Factory (which > might be shared by several applications with different configurations). > i gave up on it in the end because it

Re: passing an object to a handler

2002-10-02 Thread william ross
On Wednesday, October 2, 2002, at 09:48 PM, Dave Rolsky wrote: > On Wed, 2 Oct 2002, william ross wrote: > >> I did have it set up that way at one point. it worked quite nicely as >> long as I made the singleton in a subclass of the main Factory (which >> might be shared by several applications

virtualhost based variables

2002-10-02 Thread Alan
Greetings again. I'm trying to figure out the best/fastest/most elegant way of setting virtualhost based variables. Basically I have three sites, and the only difference between them is the DocumentRoot ($htdocroot) and the database their data is being accessed from ($dbh). When it was a single

Re: virtualhost based variables

2002-10-02 Thread James G Smith
Alan <[EMAIL PROTECTED]> wrote: >Greetings again. > >I'm trying to figure out the best/fastest/most elegant way of setting >virtualhost based variables. Basically I have three sites, and the only >difference between them is the DocumentRoot ($htdocroot) and the database >their data is being acces

Graphics and mod_perl

2002-10-02 Thread Justin Luster
  I’m new to mod_perl and I’m really enjoying it.  It has really improved performance.  Right now I’m just using Modperl::Registry to speed up things.  I have a question about showing graphics using a Perl Script and running it through mod_perl.    Using Perl under regular CGI to create

Re: virtualhost based variables

2002-10-02 Thread Alan
On Wed, Oct 02, 2002 at 06:04:03PM -0500, James G Smith wrote: > Alan <[EMAIL PROTECTED]> wrote: > >Greetings again. > > > >I'm trying to figure out the best/fastest/most elegant way of setting > >virtualhost based variables. Basically I have three sites, and the only > >difference between them i

Re: cookies and IE

2002-10-02 Thread Kee Hinckley
At 9:29 AM +0200 10/2/02, Sven Geisler wrote: >Hi Alan, >Hi Kee, > >I would say Kee is wrong. >In our application, the development of which I am involved in, for a >special case we need to write a cookie and redirect to another page. Wouldn't be the first time I've been wrong. I do know that I w

url to png/jpeg

2002-10-02 Thread Alastair Stuart
Hi, Somewhere read about converting urls to jpegs on the fly using modperl ?? Preferrably, to png TIA Alastair Stuart Perl Person

urls with session info

2002-10-02 Thread Gabriel C Millerd
i have been trying to write a handler that will provide me with session data using the URL (eg, http://www.domain.com/$sessionid . $r->url) like the eagle books has on p246. in addition i am serving a cookie with that same $sessionid and then comparing to two $sessionid's in order to prevent

Re: url to png/jpeg

2002-10-02 Thread Mike P. Mikhailov
Hello Alastair Stuart, Sunday, September 29, 2002, 6:46:49 PM, you wrote: AS> Hi, AS> Somewhere read about converting urls to jpegs on the fly using modperl ?? AS> Preferrably, to png AS> TIA AS> AS> Alastair Stuart AS> Perl Person Look at Apache::ImageMagic. It uses Image::Ma

[Silly Problem] Error Logs all over the place

2002-10-02 Thread Rafiq Ismail
Hi People, I'm trying to figure out why something is happening and after a failed very silly idea of forking, backticks, greps and strace, I seek your help! Background -- Using: moya# /usr/local/sbin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jul 2 2002 13:08:13 On

[Silly Problem] Error Logs all over the place

2002-10-02 Thread Rafiq Ismail
Hi People, I'm trying to figure out why something is happening and after a failed very silly idea of forking, backticks, greps and strace, I seek your help! Background -- Using: moya# /usr/local/sbin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jul 2 2002 13:08:13 On

[Silly Problem] Error Logs all over the place

2002-10-02 Thread Rafiq Ismail
Hi People, I'm trying to figure out why something is happening and after a failed very silly idea of forking, backticks, greps and strace, I seek your help! Background -- Using: moya# /usr/local/sbin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jul 2 2002 13:08:13 On

Re: Graphics and mod_perl

2002-10-02 Thread Per Einar Ellefsen
At 01:41 03.10.2002, Justin Luster wrote: > > >I m new to mod_perl and I m really enjoying it. It has really improved >performance. Right now I m just using Modperl::Registry to speed up >things. I have a question about showing graphics using a Perl Script and >running it through mod_perl.

Defaulting to default-handler from custom handler

2002-10-02 Thread Carlos Ramirez
What is the proper way to revert back to the default-handler from a custom PerlHandler? My handler is only defined in ScriptAlias'd locations. In the cases when I want the default-handler to process the cgi request, that is have mod_cgi (i.e. perl-script) run the script I tried: $r->handler(

request patch that fixes previous declaration of getline in htpasswd.c

2002-10-02 Thread marc spamcatcher
Doug, All, I am trying to install puresecure, which compiles apache and mod_perl, but im getting the error: htpasswd.c:145: conflicting types for `getline' /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/include/stdio.h:445: previous declaration of `getline' which matches your discussion i found h

Re: problems with sessions and upgrading

2002-10-02 Thread perrin
> 1) the sessions keys for the new sessions are twice as long as the old > ones. generally, this is a good thing, but i am concerned that the old > session data will not get read when the cookie is submitted. will the > old sessions get read and reused, read and new ones created, totally > ignor

Re: problems with sessions and upgrading

2002-10-02 Thread ___cliff rayman___
hi perrin, yes, i did read the discussion with interest a few months back regarding what should be stored in a session and what in the back end database. customer and order data is properly stored in a secured back end system. the cart contains data that i want to keep for 30 days, such as cart