Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Tobias Hoellrich
At 01:49 PM 4/30/00 -0400, Sam Carleton wrote: > >Tobias, > >I am looking into it right now, but you might be able to save me a lot >of time. I want to display the name/values from the HTML form. How >would I go about enumerating through the @params to do this? > >Sam How bout this: package Ap

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Sam Carleton
Tobias Hoellrich wrote: > > Almost :-) Apache cannot be used for multipart/form-data, gotta use > Apache::Request instead. Change the start of the handler to : > > sub handler { > my $r = shift; > my $apr = Apache::Request->new($r) > > and then get the params with @p

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Tobias Hoellrich
At 01:29 PM 4/30/00 -0400, Sam Carleton wrote: > > Ok, So cgi-lib.pl isn't the greatest in the world, but it did help me > get a big farther in my project:) Now I need something that works. I > have "Writing Apache Modules with Perl and C", but have not read too > deep into it and time is ver

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Sam Carleton
"Jeffrey W. Baker" wrote: > > On Sat, 29 Apr 2000, Sam Carleton wrote: > > > #! /usr/bin/perl > > > > #cgi-lib.pl was optained from http://cgi-lib.berkeley.edu/ > > require "cgi-lib.pl"; > > If we can erradicate polio and small pox, surely there must be a way to > rid the world of cgi-lib.pl.

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Ron Pero
Dear Sam CGI.pm is the module of choice on this. It comes with the standard distribution, so you already have it (probably). In the documentation, go to the section titled, CREATING A FILE UPLOAD FIELD. It is easy. Ron At 10:33 PM 04/29/00 -0400, Sam Carleton wrote: >Sam Carleton wrote: >> >>

Re: perl code to handle a multipart/form-data POST

2000-04-29 Thread Jeffrey W. Baker
On Sat, 29 Apr 2000, Sam Carleton wrote: > #! /usr/bin/perl > > #cgi-lib.pl was optained from http://cgi-lib.berkeley.edu/ > require "cgi-lib.pl"; If we can erradicate polio and small pox, surely there must be a way to rid the world of cgi-lib.pl. Apparently it can still strike the young, eld

Re: perl code to handle a multipart/form-data POST

2000-04-29 Thread Sam Carleton
Sam Carleton wrote: > > I am in a very tight spot right now. I need to have some C++ code > posting data to a web browser vi 'multipart/form-data' by Monday. I > would REALLY like to have either a normal perl CGI script or mod_perl > script that will simply display all the information POSTed to

perl code to handle a multipart/form-data POST

2000-04-29 Thread Sam Carleton
I am in a very tight spot right now. I need to have some C++ code posting data to a web browser vi 'multipart/form-data' by Monday. I would REALLY like to have either a normal perl CGI script or mod_perl script that will simply display all the information POSTed to it from my code. Is anyone up