Output a page for download

2005-01-12 Thread Sean Davis
A basic question, but I would like to output tab-delimited text (from a database lookup) to the user as an application/octet-stream with the name "tissue_dump.txt". I can't figure out the correct way to set the headers under mod_perl. Any help? Thanks, Sean

Re: Output a page for download

2005-01-12 Thread John Saylor
hi ( 05.01.12 09:38 -0500 ) Sean Davis: > I would like to output tab-delimited text (from a database lookup) to > the user as an application/octet-stream with the name > "tissue_dump.txt". I can't figure out the correct way to set the > headers under mod_perl. Any help? you could buy the boo

Re: Output a page for download

2005-01-12 Thread Roman Vašíček
Hi, use $r->content_type('application/octet-stream); to set the content type in tissue_dump.txt if file exist and is processed as Mason component (or in dhandler if does not exist). I expect code will looks like $r->content_type('application/octet-stream'); # set content type $m->print($out

no get_handlers in Apache::Filter with Axkit

2005-01-12 Thread Francesc Guasch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I want to use the Axkit and Mason. I got this error when I try to access to an AxKit page: Can't locate object method "get_handlers" via package "Apache::Filter" at /usr/local/web07/perl/lib/site_perl/5.8.6/Apache/Filter.pm line 106. Mason pages run

Re: Output a page for download

2005-01-12 Thread Roman Vašíček
On Wed, Jan 12, 2005 at 09:51:25AM -0500, John Saylor wrote: > hi > > ( 05.01.12 09:38 -0500 ) Sean Davis: > > I would like to output tab-delimited text (from a database lookup) to > > the user as an application/octet-stream with the name > > "tissue_dump.txt". I can't figure out the correct wa

Re: PerlSendHeader in "Location" directive (mod_perl 1.x)

2005-01-12 Thread Stas Bekman
Ciro The Spider-Man wrote: Which section you refer to? I can only see nph mentioned in: http://perl.apache.org/docs/1.0/guide/config.html#E_lt_LocationE_gt__Configuration saying: PerlSendHeader On tells the server to send an HTTP headers to the browser on every script invocation. You will want to

Re: Output a page for download

2005-01-12 Thread Sean Davis
good question. If you want to force user to download this file try to set the header 'Content-disposition' to the value 'attachment; filename=tissue_dump.txt' $r->content_type('text/plain') $r->headers_out->set('Content-disposition' => 'attachment; filename=tissue_dump.txt'); worked. Thanks Roman

Re: Output a page for download

2005-01-12 Thread Jay Scherrer
Wouldn't that be: Content-type "text/plain" ? Jay Scherrer On Wednesday 12 January 2005 06:38 am, Sean Davis wrote: > A basic question, but > > I would like to output tab-delimited text (from a database lookup) > to the user as an application/octet-stream with the name > "tissue_dump.txt". I

request counter

2005-01-12 Thread Torsten Foertsch
Hi, is there a counter in Apache2 that indicates how many requests have been served by a particular child with prefork mpm? If yes, is it accessible via perl? Thanks, Torsten pgpjmRIjJN5wk.pgp Description: PGP signature

OT: Free Software as a "Security Hole"

2005-01-12 Thread Goehring, Chuck, RCI - San Diego
I post here for lack of a better place. Sorry in advance to anyone offended. I was speaking to an acquaintance that has a security background and she told me her company prohibits the use of "Free" software because there is no guarantee that there are no "backdoors" in it. Has anyone suc

Re: OT: Free Software as a "Security Hole"

2005-01-12 Thread JupiterHost.Net
Goehring, Chuck, RCI - San Diego wrote: I post here for lack of a better place. Sorry in advance to anyone offended. I was speaking to an acquaintance that has a security background and she told me her company prohibits the use of "Free" software because there is no guarantee that there are no "b

Re: OT: Free Software as a "Security Hole"

2005-01-12 Thread John Saylor
hi ( 05.01.12 09:21 -0800 ) Goehring, Chuck, RCI - San Diego: > I was speaking to an acquaintance that has a security background and > she told me her company prohibits the use of "Free" software because > there is no guarantee that there are no "backdoors" in it. why is this not true of propriet

Re: OT: Free Software as a "Security Hole"

2005-01-12 Thread Ian Joyce
I am assuming you are trying to start a flame war here. With open software I can at least check if there is a back door. Think on that for a while. -Ian On Wed, 12 Jan 2005 09:21:01 -0800, Goehring, Chuck, RCI - San Diego <[EMAIL PROTECTED]> wrote: > I post here for lack of a better place. Sor

[Fwd: Re: OT: Free Software as a "Security Hole"]

2005-01-12 Thread brian wheeler
I forgot to CC the list! Forwarded Message > From: brian wheeler <[EMAIL PROTECTED]> > To: Goehring, Chuck, RCI - San Diego > <[EMAIL PROTECTED]> > Subject: Re: OT: Free Software as a "Security Hole" > Date: Wed, 12 Jan 2005 12:28:34 -0500 > On Wed, 2005-01-12 at 09:21 -0800, Goe

RE: Free Software as a "Security Hole"

2005-01-12 Thread Goehring, Chuck, RCI - San Diego
I was looking for something authoratative like FSF, ASF or Richard Stallman documents etc. Thanks in advance. -Original Message- From: Goehring, Chuck, RCI - San Diego Sent: Wed 1/12/2005 9:21 AM To: modperl@perl.apache.org Cc: Subject: OT: Free Software as a "Security Hole"

Re: Free Software as a "Security Hole"

2005-01-12 Thread Skylos
It makes me wonder how they guarantee that the software they paid for doesn't have back doors in it. Skylos On Wed, 12 Jan 2005 09:34:12 -0800, Goehring, Chuck, RCI - San Diego <[EMAIL PROTECTED]> wrote: > > I was looking for something authoratative like FSF, ASF or Richard Stallman > documents

Re: Free Software as a "Security Hole"

2005-01-12 Thread John Saylor
hi ( 05.01.12 09:34 -0800 ) Goehring, Chuck, RCI - San Diego: > I was looking for something authoratative like FSF, ASF or Richard > Stallman documents etc. you may have heard of 'google' ... -- \js oblique strategy: remove specifics and convert to ambiguities

[mp2] memory access violation in $subr->run

2005-01-12 Thread Dorian Taylor
i'm running into a problem with the execution of subrequests. the process dies in modperl_wbucket_flush. this problem occurs with the same perl code in prefork.c and worker.c on osx. note, the subrequest is run from a non-response handler (i've tried header-parser through fixup, same effect). the

Re: request counter

2005-01-12 Thread Perrin Harkins
Torsten Foertsch wrote: is there a counter in Apache2 that indicates how many requests have been served by a particular child with prefork mpm? You can just make one yourself in a global variable. See Apache::SizeLimit for an example. - Perrin -- No virus found in this outgoing message. Checked

Re: OT: Free Software as a "Security Hole"

2005-01-12 Thread Juan J. Merelo Guervós
Goehring, Chuck, RCI - San Diego wrote: I post here for lack of a better place. Sorry in advance to anyone offended. I was speaking to an acquaintance that has a security background and she told me her company prohibits the use of "Free" software because there is no guarantee that there are no

Re: OT: Free Software as a "Security Hole"

2005-01-12 Thread Jay Scherrer
Perhaps you sould read the source. But I think your looking for some backing with your discussion. Try posting to the [EMAIL PROTECTED] and see what happens. Free software has their new zine out perhaps take a read. Jay Scherrer On

Re: Free Software as a "Security Hole"

2005-01-12 Thread Steven Lembark
-- Skylos <[EMAIL PROTECTED]> It makes me wonder how they guarantee that the software they paid for doesn't have back doors in it. It does: google "microsoft windows easter eggs". Actually, you have better odds of knowing whether there are back doors on open source given that there ARE people who

Re: request counter

2005-01-12 Thread Stas Bekman
Torsten Foertsch wrote: Hi, is there a counter in Apache2 that indicates how many requests have been served by a particular child with prefork mpm? Yes. The scoreboard. If yes, is it accessible via perl? Yes. Apache::Scoreboard: http://search.cpan.org/dist/Apache-Scoreboard/ and you can see it in

Perl module requiring mod_perl

2005-01-12 Thread Patrick LeBoutillier
Hi, I am writing a Perl module the requires mod_perl to run. What I would like to do detect if mod_perl is installed (and the appropriate version) directly from Makefile.PL (PREREQ_PM). I'm thinking maybe a ModPerl.pm module could be added to the mod_perl distro that could contain that current mo

[mp1] Conflict with identical scripts loaded into independent virtual hosts

2005-01-12 Thread David L. Fielding
Topic: Conflict with identical scripts loaded into independent virtual hosts Hello, We have been running a single instance of a large Perl application under Apache/mod_perl for a long time. We would like to run the same script (but each with different configuration data) under different virtual h

[mp1] Conflict with identical scripts loaded into independent virtual hosts

2005-01-12 Thread David L. Fielding
Topic: Conflict with identical scripts loaded into independent virtual hosts Hello, We have been running a single instance of a large Perl application under Apache/mod_perl for a long time. We would like to run the same script (but each with different configuration data) under different

Re: Perl module requiring mod_perl

2005-01-12 Thread Michael Schout
Patrick LeBoutillier wrote: Hi, I am writing a Perl module the requires mod_perl to run. What I would like to do detect if mod_perl is installed (and the appropriate version) directly from Makefile.PL (PREREQ_PM). just put something like this in PREREQ_PM mod_perl => '1.9916' That will require mod_

[mp2] fun with $r->location

2005-01-12 Thread Dorian Taylor
i guess i had never come across it before, but i noticed today, in an attempt to use $r->location as a prefix for scrubbing path segments off the front of a request URI, that it's the innermost block that matches the URI path and that has a Perl*Handler in it that is returned, not the one in which

Re: [mp2] memory access violation in $subr->run

2005-01-12 Thread Philippe M. Chiasson
Please read http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems to learn how to submit a more complete bug report. This will help us understand your problem better and speed up the bug fixing process. Thanks! Dorian Taylor wrote: i'm running into a problem with the execution of

Re: [mp1] Conflict with identical scripts loaded into independent virtual hosts

2005-01-12 Thread Philippe M. Chiasson
David L. Fielding wrote: Topic: Conflict with identical scripts loaded into independent virtual hosts Hello, We have been running a single instance of a large Perl application under Apache/mod_perl for a long time. We would like to run the same script (but each with different configuration data)

Re: [mp2] fun with $r->location

2005-01-12 Thread Geoffrey Young
> GET /foo/ yields the listing for /foo/, and NopHandler logs > $r->location to the error log as /foo. > > GET /foo/bar yields the results of NopResponse (which just coughs > up its $r->location, /foo/bar), and NopHandler logs $r->location > as /foo/bar, even though it is registered in . > > GET

RE: OT: Free Software as a "Security Hole"

2005-01-12 Thread Goehring, Chuck, RCI - San Diego
Thanks. I actually found a mention in Stallman http://www.gnu.org/events/rms-nyu-2001-transcript.txt From: Jay Scherrer [mailto:[EMAIL PROTECTED] Sent: Wed 1/12/2005 10:18 AM To: modperl@perl.apache.org Cc: Subject: Re: OT: Free Software as a "Security Hole" Perhaps you sould