File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Pete Smith
Hi, I am new to this list, but I have tried looking through the docs at CPAN and googling for people with similar problems to no avail. We have upgraded our server to apache2 + mod_perl2. I used to have a routine that took a file upload from a multipart form and handed it as a stream to Imager an

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Stas Bekman
Pete Smith wrote: Hi, I am new to this list, but I have tried looking through the docs at CPAN and googling for people with similar problems to no avail. We have upgraded our server to apache2 + mod_perl2. I used to have a routine that took a file upload from a multipart form and handed it as a st

RE: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Pete Smith
> no, no, you have confused something. You need a new version of > Apache::Request > which is still in beta. Please take a look at: > http://httpd.apache.org/apreq/ > Also please notice that it has its own mailing list if you have any > questions. Thanks for your help. I've installed it, and Apach

libapreq2 and FreeBSD

2004-01-16 Thread Martin Nilsson
I'm trying to install libapreq2-2.02-dev on FreeBSD 4.9 with Perl 5.6.1 and Apache 2.048 mod_perl2-1.99r12 all installed from ports. Things that needs to be changed: Build with gmake - not the FreeBSD make! src/Makefile - Add -L/usr/local/lib to the following line so expat lib is found: LIBS =

[Fwd: NTLM Authentcation]

2004-01-16 Thread Shannon Eric Peevey
Original Message Subject:NTLM Authentcation Date: Thu, 15 Jan 2004 20:14:51 + From: Darryl L Miles <[EMAIL PROTECTED]> Organization: E-Smart Integrations Ltd To: [EMAIL PROTECTED] Hi, Sorry to trouble you but you're name has cropped up in many modperl f

Re: Modperl 2.0 Not finding correct *.conf

2004-01-16 Thread steve larson
Hello, here is the requested information. Thanks for the support, :) Steve Larson [EMAIL PROTECTED] -8<-- Start Bug Report 8<-- 1. Problem Description: I can explain the reason I was using the apr-config file, due to the several which exist: [EMAIL PROT

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
"Pete Smith" <[EMAIL PROTECTED]> writes: [...] > my $image_upload = $r->upload('image'); > my $file_handle = $image_upload->fh(); > > read ($file_handle, my $full_image_data, (stat($file_handle))[7]); > > my $imager = Imager->new(); > > $imager->open(data => $full_image_data, type => 'jpeg');

Re: libapreq2 and FreeBSD

2004-01-16 Thread Joe Schaefer
Martin Nilsson <[EMAIL PROTECTED]> writes: > I'm trying to install libapreq2-2.02-dev on FreeBSD 4.9 with Perl > 5.6.1 and Apache 2.048 mod_perl2-1.99r12 all installed from ports. Wonderful! Thanks alot! [...] > Files: > ///usr/local/lib/perl5/5.6.1/man/man3/Apache::Cookie.3 > ///usr/local/lib

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Clayton Cottingham
i just figured something like this out on perlmonks.org: http://www.perlmonks.org/index.pl?node_id=320770 On Fri, 2004-01-16 at 11:02, Joe Schaefer wrote: > "Pete Smith" <[EMAIL PROTECTED]> writes: > > [...] > > > my $image_upload = $r->upload('image'); > > my $file_handle = $image_upload->fh()

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Geoffrey Young
> In your mp1 code, you are simply slurping the upload into > $full_image_data; with apreq2 you can do that with a bucket > brigade via > > my $bb = $req->upload('image')->bb; > my $full_image_data = ""; > > while (my $b = $bb->first) { > $b->read(my $buffer); > $full_image_data

perl sections howto?

2004-01-16 Thread gerard uolaquetalestem
(I have sent this mail from another address and it has not be received, so i re-send again) Once i have installed the last windows version of modperl2, i try to transcript some apache code of my httpd.conf into perl sections. I have this block in my httpd.conf (i post two times) --

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
Geoffrey Young <[EMAIL PROTECTED]> writes: [...] > I'm not as familiar with brigades as I should be, but does > it save you the iteration process or is it just a substitute for > reading to a buffer? It'd save you the iteration process (it's an APR::Brigade method, not APR::Bucket), but would n

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Geoffrey Young
Joe Schaefer wrote: > Geoffrey Young <[EMAIL PROTECTED]> writes: > > [...] > > >>I'm not as familiar with brigades as I should be, but does >>it save you the iteration process or is it just a substitute for >>reading to a buffer? > > > It'd save you the iteration process (it's an APR::Briga

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
Geoffrey Young <[EMAIL PROTECTED]> writes: > Joe Schaefer wrote: > > my $upload_data = $req->upload('file')->bb->flatten; > > oooh, nice. I can definitely see that being a useful idiom. Not sure if it'd be better for flatten to take $upload_data as an argument and return a status code instea

Includes in mod_perl

2004-01-16 Thread Hemond, Steve
Hi ppl, I've started programming with Perl some months ago and I want to switch to mod_perl for my website (my older website is an asp website). I readed the tutorials on perl.apache.org but I am still very confused and don't know how to start my new website with mod_perl. Actually : 1. I have o

Re: Different results using mod_proxy or mod_rewrite vs direct server - followup

2004-01-16 Thread Rafael Caceres
On Mon, 2004-01-12 at 17:55, Stas Bekman wrote: > Rafael Caceres wrote: > > I'm setting up a HTTP/HTPPS reverse proxy server with apache on my DMZ. > > The proxy will access an internal server (insidelan.server.com) to > > provide content to outside users. > > I've attempted using mod_proxy: > > >

Re: Includes in mod_perl

2004-01-16 Thread petersm
Hemond, Steve <[EMAIL PROTECTED]> wrote > Actually : > 1. I have only one website running on my Apache webserver (in /htdocs/) Maybe if you show us the relevant portions of your httpd.conf file we could point you in the right direction since this is were most of that is set up. > 2. I would like

RE : Includes in mod_perl

2004-01-16 Thread Hemond, Steve
Here are snippets of my httpd.conf file : - ... LoadModule perl_module modules/mod_perl.so ... DocumentRoot "/usr/local/apache2/htdocs" ... Options Indexes +Includes +ExecCGI AllowOverride None Order allow,deny Allow from all ... AddHandler

Re: RE : Includes in mod_perl

2004-01-16 Thread petersm
"Hemond, Steve" <[EMAIL PROTECTED]> wrote > Here are snippets of my httpd.conf file : > - > ... > LoadModule perl_module modules/mod_perl.so > ... > DocumentRoot "/usr/local/apache2/htdocs" > ... > > Options Indexes +Includes +ExecCGI > AllowOverride

Bandwidth limiting (per client or global)?

2004-01-16 Thread Dave Rolsky
I looked for a flexible bandwidth limiting solution that would let me apply limits to a location, vhost, the whole server, and on either a per-client or global basis. I couldn't find one, but I may have missed something obvious. I know that neither mod_throttle or mod_bandwidth are flexible enoug

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Stas Bekman
Joe Schaefer wrote: Geoffrey Young <[EMAIL PROTECTED]> writes: [...] I'm not as familiar with brigades as I should be, but does it save you the iteration process or is it just a substitute for reading to a buffer? It'd save you the iteration process (it's an APR::Brigade method, not APR::Buck

Re: Modperl 2.0 Not finding correct *.conf

2004-01-16 Thread Stas Bekman
steve larson wrote: I can explain the reason I was using the apr-config file, due to the several which exist: [...] *** Makefile.PL options: MP_APR_CONFIG => /usr/local/source/apache2/srclib/apr/apr-config MP_APXS => /usr/local/apache2/httpd/prefork/bin/apxs MP_AP_PREFIX=> /us

Re: libapreq2 and FreeBSD

2004-01-16 Thread Stas Bekman
Martin Nilsson wrote: I'm trying to install libapreq2-2.02-dev on FreeBSD 4.9 with Perl 5.6.1 and Apache 2.048 mod_perl2-1.99r12 all installed from ports. Things that needs to be changed: Build with gmake - not the FreeBSD make! src/Makefile - Add -L/usr/local/lib to the following line so expat l

Re: perl sections howto?

2004-01-16 Thread Stas Bekman
gerard uolaquetalestem wrote: (I have sent this mail from another address and it has not be received, so i re-send again) Once i have installed the last windows version of modperl2, i try to transcript some apache code of my httpd.conf into perl sections. I have this block in my httpd.conf (i post

Re: RE : Includes in mod_perl

2004-01-16 Thread Stas Bekman
petersm wrote: [...] Try adding this line 'AddHandler perl-script .cgi .pl' inside of your tags. After you do that, what do you get when you put a test .cgi or .pl file into the /usr/local/apache2/htdocs/ dir and try and run it. How is it going to work without PerlHandler? Steve, I supposed you'v

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: [...] > It doesn't sound like a good idea. Users ain't need to mess with > bucket brigades, unless they really want to. If the upload is always > going through the temp file, why making things complex for the users? Exactly because it is NOT always going

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Stas Bekman
Joe Schaefer wrote: Stas Bekman <[EMAIL PROTECTED]> writes: [...] It doesn't sound like a good idea. Users ain't need to mess with bucket brigades, unless they really want to. If the upload is always going through the temp file, why making things complex for the users? Exactly because it is NO

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Stas Bekman
Joe Schaefer wrote: [...] I'm not against adding the perl glue for APR::Brigade::flatten, quite on the opposite I'm all for it. All I was saying is that users don't need to know about the existance of APR::Brigade at all. Not only because it's an unnecessary information to 99.9% of users out there,

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: [...] > You need the filehandle only if you use the temp file. In which case > bbs are irrelevant. If you use slurp then there is are no > filehandles. I think these are orthogonal. Agreed- my earlier +1 was for both adding a slurp() method and marking th

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Stas Bekman
Joe Schaefer wrote: Stas Bekman <[EMAIL PROTECTED]> writes: [...] You need the filehandle only if you use the temp file. In which case bbs are irrelevant. If you use slurp then there is are no filehandles. I think these are orthogonal. Agreed- my earlier +1 was for both adding a slurp() method