From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b338d78de52bfcdb X-Google-Attributes: gidfa528,public From: Subject: Re: Using APACHE with POST command, Parsing File Date: 2000/06/16 Message-ID: <87zool8nve.fsf@bglbv.my-deja.com>#1/1 X-Deja-AN: 635448734 Content-Transfer-Encoding: 8bit References: <8idgqu$9cc$1@kermit.esat.net> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@freeuk.net X-Trace: nnrp3.clara.net 961182124 212.126.145.219 (Fri, 16 Jun 2000 20:02:04 BST) Mime-Version: 1.0 NNTP-Posting-Date: Fri, 16 Jun 2000 20:02:04 BST Newsgroups: comp.unix.tru64 "John Rea" writes: > I am running Apache on Dec Unix 4.0 > > I have a Web Page that calls a cgi script and passes a file using the POST > method & ENCTYPE="multipart/form-data" > > My script is written in shell and a bit slow. Is there any utility out > there to take this file & parse it. It would be brilliant if it would take > the the values passed in single variables & put these to system environment. Recent versions of CGI.pm can handle this (and more). Note that multipart/form-data is meant to be used in situations (file uploads, large data fields) where environment variables can be unwieldy. You should be able to get CGI.pm at http://www.genome.wi.mit.edu/ftp/pub/software/WWW/cgi_docs.html ftp://ftp-genome.wi.mit.edu/pub/software/WWW/ > The method is brilliant but the code makes it hard to implement many > versions. > I would program it in C, if I knew how to program C! I'm afraid my suggestion requires proficiency in Perl, which you may or may not have. In any case, remember that CGI programs are dangerous for the security of your systems unless they are *very* competently written. That could be taken to mean "don't do it yourself, hire a specialist"; unfortunately, not everyone who advertises himself as a competent CGI programmer is one. Maybe your best course is to (a) hire someone, and (b) learn enough about it yourself to make an informed judgment on your contractor's competence.