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

Posting data in multipart content-type

 [1/1] from: rebol-list2::seznam::cz at: 6-Apr-2006 1:43


Hello rebolist, !!! Cookies-daemon script now allows to post data as a multipart !!! do http://box.lebeda.ws/~hmm/rebol/cookies-daemon_latest.r ;sending single file: read/custom target-url [multipart [myfile %somefile.txt]] ;== same like <INPUT TYPE=FILE NAME=myfile> ;sending normal fields: read/custom target-url [multipart [field1 "some value" field2 "another value]] ;sending multivalue: read/custom target-url [multipart ["field[]" "some value" "field[]" "another value]] ;sending file with field value: read/custom target-url [multipart [myfile %somefile.txt field1 "some value"]] Source files (with modified %http-patch.r) are in this archive: http://box.lebeda.ws/~hmm/rebol/cookies-daemon_latest.rip As it's part of the cookies-daemon, it should deal with the cookies automatically. The script is trying to detect content-type of the file which you want to upload calling get-content-type function, which is not part of the cookies-daemon (at this moment) -- Best regards, rebOldes -----------------[ http://oldes.multimedia.cz/ ]