Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: CGI, uploading file using HTTP, server side

From: rebol:meurrens at: 28-Jun-2003 14:55

Hello Andreas, Hello all, I modified your 'decode-multipart-form-data script a little bit to let it process multiple form fields sharing the same name (such e.g. as a password entry field) in a way strictly similar to what is done with the 'GET method, this is by defining a block! of values. (search for the string "decode-multipart-form-data" and, specifically, near "handle-mime-part" in my source). To understand what it means for the user, fill in the example at URL http://rebol.mksa.net/make-cgi/form-files.php and watch the probe of the result. Btw, my make-cgi.r script is now mature enough to reach version number 0.1.0 and... to let me work to other things. I consider the script as finished now, at least for a while... It's available, for you all, at URL http://rebol.mksa.net/make-cgi/ The last small todo's and issues: --- content-length (Olivier + recent/current ML thread on "POST"), --- content-transfer-encoding (Graham, Andreas, RFC 1867), --- to-rebol-file (Mario), --- misc. discussions with Olivier, Graham, Andreas and Mario, etc are all solved and the synthesis of these discussions is in the abobe page and/or in the source code comments. The number of features, examples and tools was increased to encounter additional situations discussed in private mails and/or in this ML and/or on published papers: --- uploading of multiple files (Mario), --- uploading from a client REBOL script (paper of Graham + my script object.reb on the above page) --- providing a "unique" temporary name for uploaded files (my "file" object) --- etc HTH </marc>
Prof. Ir Marc Meurrens, Brussels (be) TEL: +32 (0)2 537 2812 FAX: +32 (0)2 537 7645 EMAIL: [marc--meurrens--org] URL: http://www.meurrens.org/ REB: http://rebol.mksa.net/ PGPKEY: http://www.meurrens.org/pgp/ Please don't mail me attached files, instead, use my 'exchange area' : EXCHANGE AREA: http://www.meurrens.org/exchange/ (HTTP/FTP upload/download of temporary/persistent files)