Re: Cookies, CGI::App, and mod_perl

2003-08-03 Thread Tom Hukins
On Fri, Aug 01, 2003 at 01:14:44PM -0400, Perrin Harkins wrote:
 On Fri, 2003-08-01 at 13:04, petersm wrote:
  When running under mod_perl the cookie is no
  where to be seen.
 
 Do some debugging.  Look at the traffic going back and forth.  Test it
 with GET or lynx.  See if the cookie header is being sent.

To elaborate a little on this thread:

I find ethereal http://www.ethereal.com/ useful for debugging
situations like this.  Certain browsers (that I won't name) behave in
quirky ways that GET or lynx won't emulate, so it's often worth
running ethereal in the background whilst using your site with various
browsers, then analysing TCP streams in ethereal to see exactly what's
happening.

Tom


Re: How do I force a 'Save Window?'

2002-11-20 Thread Tom Hukins
On Wed, Nov 20, 2002 at 11:24:33AM +0200, Issac Goldstand wrote:
 To force the save window is easy - make up your own content subtype (main
 type application)  and set it:
 
 Content-Type: application/x-download-this-file-you-stupid-browser
 
 Remember to start with an x- as your type is obviously not registered with
 the IANA.

Why not use the application/octet-stream MIME type as recommended in
RFC 1521?

Tom



Re: SSL - mod_gzip - mod_perl = mod_proxy error

2002-10-21 Thread Tom Hukins
On Mon, Oct 21, 2002 at 08:11:16AM -0500, Nigel Hamilton wrote:
 
 * Even though your network may be fast - the last mile over a 28.8 K 
 modem can be slow - and compression helps here

Most modems use compression protocols such as V.42bis.  You don't gain
much, if anything, from compressing data sent through such devices, or
from using other techniques such as stripping redundant whitespace
from HTML.

In my experience, most ISDN connections don't use link level
compression - techniques such as mod_gzip have some merit in this
case.

Tom



Re: AxKit under Win32

2002-09-11 Thread Tom Hukins

On Wed, Sep 11, 2002 at 03:42:13PM +0100, Prakash Chatterjee wrote:
 Does anybody know where I can find information for installing and running
 AxKit under windows (is this possible?).

Searching Google for axkit windows leads to:
http://axkit.org/faq.xml
(see Can I run AxKit on Windows?)

http://www.perl.com/pub/a/2002/03/12/axkit.html?page=2
might also help.

Tom



Re: Mod_perl Application Development

2002-08-19 Thread Tom Hukins

On Sun, Aug 18, 2002 at 12:31:03AM +0100, Jonathan Lonsdale wrote:
 I'm curious to know how people approach application development with
 mod_perl in situations where there could be dozens of distinct
 screens/interfaces. I'm currently using the HTML::Template system.

When using HTML::Template, I've found its query() method useful to
tell the controller what code to call to pass data back to the
template:
http://perlmonks.org/index.pl?node_id=150608

Tom



Re: How to do connection pooling

2002-02-28 Thread Tom Hukins

On Thu, Feb 28, 2002 at 09:38:39PM +0100, Joachim Zobel wrote:
 At 02:11 280202 +0530, you wrote:
 Hi all,
 How can I maintain the connections in perl? For this I want to use 
 connection pooling to contol the traffic of my site How can I do this in 
 perl? Can anybody help me in this regard? If possible please give the 
 steps included in this
 
 Is Apache::DBI what you need? If not, why?  It is in fact not about 
 controlling traffic, its about reusing database connections to sve the time 
 needed for a connect

There was a discussion of database pooling and reusing DBI connections
on Perl Monks today:
http://perlmonksorg/indexpl?node_id=148233

Tom