to localhost/pageA (or simply click BACK button) then the browser DO see
the cookie!
Any idea?
Yep. You need $r-err_headers_out-{'Location'} and you could change to
$r-err_headers_out-{'Set-Cookie'} too.
- nick
--
Nick Tonkin {|8^)
Michael G Schwern [EMAIL PROTECTED] writes:
On Mon, Aug 04, 2003 at 11:19:42AM +0100, Steve Hay wrote:
Why isn't the typemap file distributed as part of ExtUtils-MakeMaker?
typemap is very specific to the version of Perl, or so it is said.
Not really. There are some changes for PerlIO * vs FILE
already have that :)
- nick
--
Nick Tonkin {|8^)
parsing, please!
- nick
--
Nick Tonkin {|8^)
haven't been able to get
it running here (some sort of install problem, my people tell me).
Not at all ready. I do not believe even a beta release has been made.
- nick
--
Nick Tonkin {|8^)
and
mod_perlish way of doing it, IMO. Just needs good documentation :)
- nick
--
Nick Tonkin {|8^)
to load is
Apache::RequestIO, right?
HTH,
- nick
--
Nick Tonkin {|8^)
it :)
- nick
--
Nick Tonkin {|8^)
::access for Location / -- watch out for this, all.
- nick
--
Nick Tonkin {|8^)
happens and
the user is sent to the /login location. So my actual AccessHandler doesn't
do anything which even resembles a subrequest.
can you post the handler?
- nick
--
Nick Tonkin {|8^)
in the
future.
- nick
--
Nick Tonkin {|8^)
would like to find someway to trace the who/what/where/why of
handler execution. Running with PERL_TRACE left me none the wiser so I was
hoping a user might know a better way?
Richard.
- nick
--
Nick Tonkin {|8^)
of the above and many of its methods
are the same as Apache::Request's.
HTH,
- nick
--
Nick Tonkin {|8^)
On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:
Hi -
I'm getting frustrated. I'm trying to parse the
incoming uri (url) in mod_perl 2, and I can't
seem to be able to find documentation. For
example, Nick gave me the following snippet
of code last week:
my $uri = APR::URI-parse($r-pool
for porting is getting quite extensive.
This doc: http://perl.apache.org/docs/2.0/devel/porting/porting.html is
what you want.
Good luck,
- nick
--
Nick Tonkin {|8^)
D'oh, please s/Apache::Filter/Apache::Sandwich/ in my earlier reply.
Sorry.
- nick
--
Nick Tonkin {|8^)
not match either
/secure/ or !/secure.
Hope this helps,
- nick
PS If you have more than one domain needing to use https, you can put it
on an arbitrary port so long as you configure the server (not apache) to
listen on it, and then hard-code the port number in the mod_rewrite rule
to specify the port in the
request.
I suggest spending some time with the docs for mod_ssl, if that's what
you're using.
- nick
--
Nick Tonkin {|8^)
On Thu, 6 Mar 2003, Stas Bekman wrote:
Nick Tonkin wrote:
On Wed, 5 Mar 2003, Richard Clarke wrote:
Hi,
I'm trying to figure out why my accesshandler is getting triggered twice
for each request that I make. I'm 100% sure that I'm doing no explicit
lookups/redirects anywhere in my
Apache::HTTP_MOVED_TEMPORARILY;
# Apache::REDIRECT still supported, this is the correct
# constant though.
Now that I think about it, maybe you're using CGI.pm to do your redirect?
If so, maybe the code in CGI.pm has not been correctly updated?
Hope this helps.
- nick
with them.
- nick
--
Nick Tonkin {|8^)
with them.
- nick
--
Nick Tonkin {|8^)
On Thu, 6 Mar 2003, Mark James wrote:
Nick Tonkin wrote:
Now that I think about it, maybe you're using CGI.pm to do your redirect?
If so, maybe the code in CGI.pm has not been correctly updated?
Yes Nick, I'm using CGI.pm version 2.91 (the latest). Its redirect code
sends a Status: 302
when you were a young man and the web was even
younger :)
- nick
--
Nick Tonkin {|8^)
,
- nick
--
Nick Tonkin {|8^)
be closer to its final version ...
- nick
--
Nick Tonkin {|8^)
-is_inital_req;
in auth handlers in the first place?
- nick
--
Nick Tonkin {|8^)
to know the user's authz level (0-4) to
produce content ... they do not care how the authz level was generated.
- nick
--
Nick Tonkin {|8^)
is that plug and play auth schemes
only work (unmodified) for the simplest sites.
Anyone using PubCookie?
http://www.washington.edu/pubcookie/
All C, no?
- nick
--
Nick Tonkin {|8^)
On Thu, 20 Feb 2003, Stas Bekman wrote:
Stas Bekman wrote:
Nick Tonkin wrote:
[...]
send_http_header() can't be called before the response phase
Nick, I've just committed a better solution. Please verify that it works for you.
Now that the uri bug is fixed, this fix works fine, Stas
On Wed, 19 Feb 2003, Nick Tonkin wrote:
Hi all,
Cookies driving me nuts as usual but I think the problem appears to be
related to which handler phase we are in.
Basically, the same call to read the cookies works in the PerlHandler but
not in the PerlAccessHandler.
Responding to my own
a heads-up.
- nick
--
Nick Tonkin {|8^)
and voila --
I don't have to set $r-content_type after all but rather can just delete
all the $r-send_http_headers calls.
YMMV, of course, if you have other parts of your webserver that do not
supply a content-type :)
- nick
--
Nick Tonkin {|8^)
line 245.
192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28.
192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28.
Anyone know what GEN1 is and why it appears every so often?
Thanks,
- nick
--
Nick Tonkin {|8^)
to the browser, they'll be there. If they
are and it's still not working, you need to look at the reading of the
cookies in your module.
- nick
--
Nick Tonkin {|8^)
On Fri, 21 Feb 2003, Stas Bekman wrote:
Ged Haywood wrote:
On Thu, 20 Feb 2003, Nick Tonkin wrote:
Hi,
In my logs when dumping a warn() I see this occasionally:
192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28.
192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28
server_hostname is not documented on the list. Anyone know the equivalent
please?
- nick
Is it possible to combine the recommended syntax:
use warnings FATAL = 'all', NONFATAL = 'redefine';
with the ability to turn warnings on in httpd.conf with PerlSwitches -w?
- nick
Nick Tonkin {|8^)
request like that not the is_initial_req
4) If the first time through it reurns DECLINED because it's not an
initial req, how come it goes through again?
5) What the heck is going on here?
Thanks,
- nick
Nick Tonkin {|8^)
',
'nick',
'_time',
'1045689878',
'expires',
'60
On Thu, 20 Feb 2003, Stas Bekman wrote:
Stas Bekman wrote:
Nick Tonkin wrote:
[...]
send_http_header() can't be called before the response phase
Nick, I've just committed a better solution. Please verify that it works for you.
I'll have a go as soon as poss.
- nick
On Thu, 20 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
server_hostname is not documented on the list. Anyone know the equivalent
please?
it hasn't changes from 1.0. I thought we have been through this already, just
yesterday.
We did. The list is resending mail. Or maybe the mail
On Thu, 20 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
Is it possible to combine the recommended syntax:
use warnings FATAL = 'all', NONFATAL = 'redefine';
with the ability to turn warnings on in httpd.conf with PerlSwitches -w?
-w is the same as:
use warnings 'all
On Thu, 20 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
Hi all,
I my httpd.conf I have:
Location /
AddType text/html .html
PerlAccessHandler WM::Auth::Access
/Location
And in my handler I have:
package WM::Auth::Access;
use strict;
use
On Thu, 20 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
On Thu, 20 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
server_hostname is not documented on the list. Anyone know the equivalent
please?
it hasn't changes from 1.0. I thought we have been through this already, just
Does anyone know the equivalent directive for
$r-server()-server_hostname()
?
Thanks,
- nick
--
Nick Tonkin {|8^)
a 1.x
installation built on this box ...
- nick
--
Nick Tonkin {|8^)
On Wed, 19 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
Does anyone know the equivalent directive for
$r-server()-server_hostname()
it's right there:
use Apache::Server;
$r-server-server_name;
Well, it doesn't work as advertised, I think.
package NPT::MyTest;
use strict;
use
On Wed, 19 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
On Wed, 19 Feb 2003, Stas Bekman wrote:
Nick Tonkin wrote:
Does anyone know the equivalent directive for
$r-server()-server_hostname()
it's right there:
use Apache::Server;
$r-server-server_name;
oops, a typo, should
-status(Apache::OK);
$r-content_type('text/html');
$r-send_http_header;
[...]
This throws the error:
send_http_header() can't be called before the response phase
Thanks,
- nick
--
Nick Tonkin {|8^)
(Apache::Const,APR::Const,Modperl::Const).
But what do I do to get Apache::DBI to work?
Am I missing something really simple here (I hope)?
Thanks
-Chris
- nick
Nick Tonkin {|8^)
you want is
http://marc.theaimsgroup.com/?l=apache-modperlm=104225578207460w=2
- nick
Nick Tonkin {|8^)
those packages too. perl 5.6.1 eould also
be fine; perl 5.6.0 has problems.
HTH,
- nick
Nick Tonkin {|8^)
On Fri, 31 Jan 2003, Lee Goddard wrote:
Does anyone know when this module might be released?
No, no one does. They are working on it. Use CGI.pm instead or revert to
mod_perl/apache version 1 until it is done.
- nick
Nick Tonkin {|8^)
Have you read the mod_perl guide? Especially
http://perl.apache.org/docs/1.0/guide/install.html#Installation_Scenarios_for_mod_perl_and_Other_Components
?
- nick
Nick Tonkin {|8^)
flawlessly on my system which is FreeBSD 4.7 and perl 5.8
I found one in debian unstable, but this requires perl 5.8.
I can't say about other perls, as I said I have 5.8
HTH
- nick
Nick Tonkin {|8^)
provides
excellent support.
Ask, can you block this bozo from the list?
- nick
Nick Tonkin {|8^)
machine
running thttpd serving all those images for 50 or a hundred webservers.
So sometimes I believe it's called for.
- nick
Nick Tonkin {|8^)
On Sun, 19 Jan 2003, Stas Bekman wrote:
Nick Tonkin wrote:
On Fri, 17 Jan 2003, Nick Tonkin wrote:
Hey all,
Building the latest mp2 I get:
protocol/echo_filter.ok
Failed Test Stat Wstat Total Fail Failed List of Failed
usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-DAPPLLIB_EXP=/home/nick/perl -fno-strict-aliasing -I/usr/local/incl
ude',
optimize='-O',
cppflags
'Configuring and Installing Prerequisites' it gives an an
example:
% ./Configure -des -Dusethreads
I'm confused. Where's the quick answer to whether or not I should use
threads? I'm on FreeBSD 4.7.
Thanks,
- nick
Nick Tonkin {|8^)
On Sat, 18 Jan 2003, Stas Bekman wrote:
Nick Tonkin wrote:
Well, I'm taking the plunge.
I have a brand new spiffy machine I'm configuring and I've decided, since
for once I don't have to get it up and running urgently, to go the whole
hog and move to the 2.0 world.
For me
the probs in the prefork mpm section. Obviously the
threaded-mpm requires threads.
Looks better to me. More clear.
-nick
Nick Tonkin {|8^)
17 20:03:55 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=62235
I have perl 5.8 on FreeBSD 4.7 with latest apache2 as of today.
Thanks,
- nick
Nick Tonkin {|8^)
On Fri, 17 Jan 2003, Nick Tonkin wrote:
Hey all,
Building the latest mp2 I get:
protocol/echo_filter.ok
Failed Test Stat Wstat Total Fail Failed List of Failed
in its address bar?
Let me know if you need to know more about any aspect of my
implementation. And, thanks for your help.
-vish
- nick
Nick Tonkin {|8^)
your web server gets bogged down,
than you should look at setting up a thin front-end apache with the
mod_perl server behind. That's the subject of a good deal of info in the
mod_perl Guide and in the archives of this list.
- nick
Nick Tonkin {|8^)
) were very responsive and
worked with us to tweak as necessary.
After a while we got one of those loser CFOs who was golf pals with the
new COO or something, and he bought a bunch of Foundry Systems Server
Irons that worked alright but were orders of magnitude more expensive.
- nick
hardware.
- nick
Nick Tonkin {|8^)
similar, and have a handler that handles everything in that
path, returning DECLINED if it doesn't match the URI you are looking for
(you don't need two handlers for this).
Hope this helps,
- nick
CGI.pm via CPAN.
- nick
Nick Tonkin {|8^)
Thanks-
Rodney
On Wed, 18 Dec 2002 16:13:19 +0800 Stas Bekman [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
I am having some trouble installing mod_perl
on my redhat linux 8.0 box. I
successfully
One thing that's useful for both people who don't know where else to turn
and people who don't want anything that's not pure mod_perl is simply to
preface your subject line with [OT] ... it's then very simple to filter
out unwanted messages in any mail reader.
- nick
PS Stas, I think maybe you
by
glossing over how large a field of study mod_perl is. It's almost as bad
as the Teach Yourself Perl in 24 Hours title put out by Geoff's
publisher.
I urge you to rethink this plan.
- nick
Nick Tonkin {|8^)
On Wed, 11 Dec 2002, Nathan Torkington wrote:
I need some people
. (That's why the Eagle book, and the mpDC, are so
good.)
- nick
Nick Tonkin {|8^)
) and then returning to it via the bookmark?
...Nick.
--
Nick Challoner
[EMAIL PROTECTED]
Not a mod_perl issue; in your apache conf do this:
# I keep all images and javascripts etc under /_[something]
SetEnvIf Request_URI /_ dontlog
CustomLog /home/nick/logs/httpdlog common env=!dontlog
- nick
Nick Tonkin {|8^)
On Tue, 19 Nov 2002, Cure wrote:
I'm
I would like to log the time it take users to download
items from my site. Has anyone has any success
writing a mod perl prog to accomplish this?
Thanks!
__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
some of the art these kids make (and also
why we need a new one!) can be viewed at http://www.rain.org/~artworks/
A cool project by one of the students is at
http://www.rain.org/%7Eartworks/NewATW/students/norma_web/norma_intro.html
Thanks folks,
- nick
Nick Tonkin {|8^)
some of the
techniques I mentioned above.
- nick
Nick Tonkin {|8^)
- nick
Nick Tonkin {|8^)
On Tue, 27 Aug 2002, Per Einar Ellefsen wrote:
- I originally had Apache::Auth::Authen, ::Authz and ::Access, but Robin
Berjon told me he preferred to have the 4 as top-level namespaces. What do
people think?
I'm in favor of your
The content seems great. But whatever font you've used is rendering skinny
and pixelated and hard to read and makes me want to egt of the site
asap ... why not leave font face undetermined so the font that each has
chosen for his platform is employed?
- nick
Nick
I'm confused. Since when did bloat surpass elegance as a measure of
success in Perl programming?
- nick
Nick Tonkin {|8^)
On Thu, 4 Jul 2002 [EMAIL PROTECTED] wrote:
On Wed, Jul 03, 2002 at 02:41:38PM +0100, Peter Haworth wrote:
On Wed, 3 Jul 2002 11:40:44 +0100
);
}
else {
End of Patch.
NI-S will probably find this patch very wrong :-)
Should be harmless. A :stdio layer without a FILE * should never happen.
Your patch prevents it doing fflush(NULL) if it does.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/
:
RETVAL
Import attempts to find out how FD that FILE * is using is open
but that really isn't sufficient.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/
Nick Barton
http://www.websavant.co.uk
is a strong word! At ValueClick we used thttpd servers to deliver
gif images ... one thttpd could efficiently handle the same number of
requests as several (non-mod_perl) front end reverse proxies ...
- nick
Nick Tonkin {|8^)
solution I've found is to create a new user 'perl' and install
Perl and all libraries etc under that user's home directory.
My system:
nick@world ~uname -a
FreeBSD world.tonkinresolutions.com 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE
#1: Sat Aug 11 18:17:44 PDT 2001
[...]
nick@world ~perl -v
cheaper than LocalDirector and others (although we did
move to a high-end Foundry Server Iron system eventually) ... good support
from a small company too.
- nick
Nick Tonkin {|8^)
On Fri, 14 Dec 2001, Perrin Harkins wrote:
I am planning to host an application and its
= '/',
value = ''
);
$cookie-bake;
return $cookie;
}
sub logout_screen {
[ ... ]
}
1;
~~~
Nick Tonkin
On Tue, 27 Nov 2001, Jon Robison wrote:
I have created a login system using the wonderful Ticket system from the
Eagle book. I have modified
Because it does a full text search of all the contents of the DB.
~~~
Nick Tonkin
On Tue, 27 Nov 2001, Robert Landrum wrote:
Does anyone know why search.cpan.org is always the s-l-o-w-e-s-t site
on the internet? I can't believe it always busy. I've had trouble
hitting it at 3
Well, ask Ask if you want the whole truth. But when I saked him that's
what he said. Maybe there's a problem with the architecture and some
pre-indexing is done per session or something suboptimal like that. Ask?
~~~
Nick Tonkin
On Tue, 27 Nov 2001, Robert Landrum wrote:
Sure... When
as the href. You can use
any code you like, including the other example posted here. Just remember
to test whether you already have the window open or not and act
appropriately.
~~~
Nick Tonkin
On Tue, 20 Nov 2001, Ben Demonte wrote:
How to create a browser popup windowhow do I unsubscribe
follows. It's much simpler now...
So simple it only does half of what it did :)
/THREAD ?
- nick
Speaking of the risks of using cookies for auth* stuff:
http://dailynews.yahoo.com/h/cn/2009/tc/microsoft_apologizes_in_security_flap_1.html
~~~
Nick Tonkin
) and use them for versioning.
Rolling back to an earlier version of your data is as simple as creating
a new DB from your table defs, then mysqlbinlog log-file | mysql new-db
See http://www.mysql.com/doc/B/i/Binary_log.html for more info.
~~~
Nick Tonkin
On Thu, 15 Nov 2001, Jonathan M
day :)
-nick
1/34 test scripts, 97.06% okay. 0/374 subtests
failed, 100.00% okay.
make: *** [run_tests] Error 29
After this we were stuck up, hence thought of copying
the existing installation on a similar machine which
seems to be working !.
Thanx
Nick.
--- Ged Haywood [EMAIL PROTECTED] wrote:
Hi
Er, you might look at http://www.tonkinresolutions.com/MSIISProbes.pm.html
...
Always a good idea to search the mod_perl list archives, as well as put
out ideas in the present tense :)
Nick
~~~
Nick Tonkin
On Mon, 29 Oct 2001, Louis LeBlanc wrote:
On 10/28/01 08:29 PM, Jeremy
Application
Servers ... it seems that you get the same effect but with more
control. Of course, I've had the luxury of afew years' experience; someone
starting out may prefer a canned solution ...
- nick
~~~
Nick Tonkin
On Tue, 16 Oct 2001, Bill Moseley wrote:
I've been looking
no /tmp, hafta look at the code).
- Nick
1 - 100 of 149 matches
Mail list logo