[REBOL] Posting data in multipart content-type
From: rebol-list2::seznam::cz at: 6-Apr-2006 1:43
!!! Cookies-daemon script now allows to post data as a multipart !!!
;sending single file:
read/custom target-url [multipart [myfile %somefile.txt]] ;== same like <INPUT TYPE=FILE
;sending normal fields:
read/custom target-url [multipart [field1 "some value" field2 "another value]]
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:
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)
rebOldes -----------------[ http://oldes.multimedia.cz/ ]