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

CGI, uploading file using HTTP [REBOL] [out of ML]

 [1/2] from: marc::meurrens::org at: 23-Jun-2003 9:39


Hi Graham, You wrote: { I put the content-transfer-encoding: base64 header in as there are a number of ways to transfer files. These include base64 and binary. I have not tested Andreas' script with binary transfers. } If I understand well, Andreas' script is binary oriented by default. Did I miss something ??? Anyway, it works with NON converted transfer. Which is the only way I observed experimentaly. You provide on the ML: {
>As I suggested in http://www.compkarori.com/vanilla/display/HTTP+file+upload
} Should read: http://www.compkarori.com/vanilla/display/HTTP+file+uploading (mind "ing") In your page, links to "Read/Custom" does not work (is interpreted as a path by your HTTP server, not as a keyword such as would be "Read+Custom"...) You write {
>Rebol can do binary upload transfers ( content-transfer-encoding: binary ) >as well, you just can't do it as easily using read/custom, and you have to >hack the http protocol to switch in and out of lines mode.
} If you know/find/write a small note (may be on the above page???) I'll insert a link to match point (3) within the first section (Scope of this page) of my page at http://rebol.mksa.net/make-cgi/ I suggest that we "cross-link" our sites on this topic... Graham Chiu
>http://www.compkarori.com/vanilla/
Marc Meurrens TEL: +32 (0)2 537 2812 FAX: +32 (0)2 537 7645 GSM: +32 (0)475 46 2812 EMAIL: [marc--meurrens--org] URL: http://www.meurrens.org/ PGPKEY: http://www.meurrens.org/pgp/ Evitez les fichiers attach=E9s au couriel, utilisez plut=F4t mon 'exchange area' : 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)

 [2/2] from: andreas:bolka:gmx at: 23-Jun-2003 22:38


Monday, June 23, 2003, 9:39:05 AM, Marc wrote:
> You wrote: { > I put the content-transfer-encoding: base64 header in as there are a number
<<quoted lines omitted: 4>>
> Did I miss something ??? Anyway, it works with NON converted > transfer. Which is the only way I observed experimentaly.
Graham's page is about the client side of doing HTTP form base uploads. I.e. about using REBOL to post files to an HTTP server. Our discussion (and my script) care for the server side, i.e. about using REBOL to accept posts by clients. Please note also, that Graham and I never tested interop betw our scripts. Further, Graham clearly states on his page: "NB: This code is untested against a multi-part form and may need some more tweaking to actually work" And just to mention this again: content-transfer-encoding is perfectly legal, and reasonable. In fact, if the header is not present, a default transfer encoding is assumed. In practice, some (most) browser don't seem to use it, when posting multipart/form-data; it seems, that binary transfer encoding (which is perfectly legal over HTTP) is used by default. -- Best regards, Andreas mailto:[andreas--bolka--gmx--net]

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted