I think it's pretty safe to say there is definitely some issues with HTML::Parser and mod_perl, at least when subclassing it.
I managed to kludge around the problem by not doing that -- ie not doing:
--- package PackageName;
use HTML::Parser;
@PackageName::ISA = qw(HTML::Parser); ---I ended u
Philip M. Gollucci wrote:
> Philippe M. Chiasson wrote:
>
>> I've finally had time to dig deeper in the troubling $0 and process
>> display
>> problems that seem to exist at least on *BSDs and HP-UX.
>>
>> [...]
>>
>> The correct solution (see patch) is:
>>
>> - Reset $0 to the _real_ argv[0] aft
Tom, thank's a lot, I'm going to test it right now, I tell you later.
Best Regards
Tom Schindl wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ok. The offending code is this:
- 8<
use strict;
my $cgi;
my %params;
# my
sub getDataFromListCode {
Geoffrey Young wrote:
what it boils down to is what type of mod_perl application you have. if
you can let apache figure out the content-type itself (via $r->filename)
then that's the best approach. if you're reading a "file" from a
database or something then you'll need to use the response p
http://search.cpan.org/dist/File-MMagic-XS/
So is this module something that should be implemented in a
PerlTypeHandler [1]?
I gathered from Jeff's question that he would be determining the file
from the PerlResponseHandler, so that's where he would need to set the
Content-Type. determ
Ok, that worked... my only gripe is that it doesn't correctly parse
the type for a WinZip (.zip) file! Oh well...
thanks :)
JB
On 9/23/05, John ORourke <[EMAIL PROTECTED]> wrote:
> Geoffrey Young wrote:
> > http://search.cpan.org/dist/File-MMagic-XS/
Through my MP2 handler, I need to be able to set Content-Type based on
the extension of any file that I'm reading from disk and then writing
to the client. I'd like to somehow (programmatically) map from file
extension to MIME type, and it seems like Apache's mime.types file is
a good place to do
On Sep 23, 2005, at 4:03 AM, Tom Schindl wrote:
I'm always compiling my own:
- - apache
- - perl
- - mod_perl
I used to do that all the time. Then i moved to freebsd, where the
ports system gives you the flexibility of compiling your own, with the
ease/standards or a centralized system.
Ah yes, Jeff ignore my suggestions and use Geoff's!
Geoffrey Young wrote:
http://search.cpan.org/dist/File-MMagic-XS/
You can use Apache to do it but it's probably less efficient:
$lookup=$r->lookup_file($fullPathAndFilename);
$mime_type=$lookup->content_type();
but that does a full subrequest to my knowledge. I'd recommend a perl
module that emulates the 'file' command:
use File::MimeInfo::Magic;
$mime_typ
Jeff Ambrosino wrote:
Through my MP2 handler, I need to be able to set Content-Type based on
the extension of any file that I'm reading from disk and then writing
to the client. I'd like to somehow (programmatically) map from file
extension to MIME type, and it seems like Apache's mime.types f
Through my MP2 handler, I need to be able to set Content-Type based on
the extension of any file that I'm reading from disk and then writing
to the client. I'd like to somehow (programmatically) map from file
extension to MIME type, and it seems like Apache's mime.types file is
a good place to do
John Kelley wrote:
Odd number of elements in hash assignment at
/usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/Exceptions.pm line 152.
[Fri Sep 23 08:24:55 2005] [error] unknown field \n passed to
constructor for class HTML::Mason::ExceptionCompilation failed in
require at /opt/rt3/lib/RT/Inte
I'm installing RT, a supportware allpication. As part of that effort, I've
compiled in mod_perl and loaded a bunch of Perl modules onto the
machine. I've reach an impasse when after compiling in mod_perl, I get
following error when performing an apache configtest:
Odd number of elements in
On Thu, 22 Sep 2005, Foo Ji-Haw wrote:
Hi all,
I wonder if you have the same problem as me when trying to
use PAR to create a standalone .EXE program. I'm using the
latest PAR with ActiveState perl 5.8.7.
When I try to run the .EXE program, a dialog box pops out
and show m the 'PL_memory_w
Fabian Kreitner wrote:
Fabian Kreitner wrote:
PerlInterpStart 1
PerlInterpMax 1
PerlInterpMaxRequests 1
This works for me.
FYI, you need an ithread enabled perl, but you probably know that or you
wouldn't have gotten this far :)
DocumentRoot /httpd-2.0.54/prefork-ithr
Do they have a SOAP::Lite::Simple::Java as
well?
- Original Message -
From:
Leo Lapworth
To: John ORourke
Cc: mod_perl Mailing List
Sent: Friday, September 23, 2005 4:06
PM
Subject: Re: Apache2::SOAP newbie
On 23 Sep 2005, at 08:44, John ORourke wrote
On 23 Sep 2005, at 08:44, John ORourke wrote:I've now got my Apache2::SOAP-based server talking with C#.NET clients, and auto-generating the WSDL using Pod::WSDL when they call http://url?wsdl, which is nice!Probably not relevant for you atm - but check out SOAP::Lite::Simple - and SOAP::Lite::Simp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Patrick Kennedy wrote:
>
>> Why are you using 1.99 when 2.0.1 is out? If you can give me more
>> information about what you need you can contact me offline and maybe I
>> can help you.
>>
>> Tom
>
>
> Apparently MP2 isn't compatible with my RedHat 3
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does $r->rflush(); help? Although it should do the same then seting $|
to undef.
Tom
Tom Schindl wrote:
> pradeep kumar wrote:
>
>>>Can you please elaborate on why apache filters can be an issue with the
>>>autoflush problem that I noticed ?
>>>
>>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ok. The offending code is this:
- 8<
use strict;
my $cgi;
my %params;
# my
sub getDataFromListCode {
$params{"Filtro1"}= "";
$params{"Filtro2"}= "";
$params{"Filtro3"}= "";
$params{"Filtro4"}=
Thanks Foo,
I've now got my Apache2::SOAP-based server talking with C#.NET clients,
and auto-generating the WSDL using Pod::WSDL when they call
http://url?wsdl, which is nice!
I'm now finding out about all the SOAP::Lite overrides and methods I can
use to return a .NET DataSet object to the
Foo Ji-Haw wrote:
I get the request cookie names like this:
my $jar = Apache2::Cookie::Jar->new($r);
my @keys = $jar->cookies();
sub fetch {
my $class = shift;
my $req = shift;
unless (defined $req) {
my $usage = 'Usage: Apache2::Cookie->fetch($r): missing argument $r';
23 matches
Mail list logo