[REBOL] read/custom mime-multipart?
From: dvl::2scale::net at: 8-Jun-2006 12:35
Hello,
this is my first posting to the list. I stumbled upon rebol when i was
looking for a single-binary deployment language (why: data center
automation without proper rights to do the job). rebol/core _seems_ to
be nice in this solution. My background: perl, java some lisp &
haskell.
Im trying to post binary content to a upload servlet as
mime-multipart. Actually rebol is used as a smtp local transport in
'exim', extracting the mime attachments from the incoming email (this
works) and then uploading them.
I found http://www.compkarori.com/vanilla/display/HTTP+file+uploading
with some helpful pointers, but someone mentioned in the 'altme?'
archives that this functionaliy is now part of rebol/core.....
But:
post-data is a properly http request (correct headers, boundary,
base64 encoded binary content, etc.).
I use the following call:
read/custom url [ 'port post-data ]
but it seems that the headers in the post-data are ignored (i see them
in the post-body (via snoop), rebol does set some default headers
though -- which are not the headers i need). This is more or less the
behaviour which is mentioned in the HTML page above.
I thought this was fixed? How to control the http-request headers?
Different questions? How do i make the pop/imap/mail protocol handlers
ssl/tls aware? I know how to establish a ssl/tls connection using a
port, but i cant find a way to make the protocol handlers to use these
sockets (ports) ...
Thanx for any hint!
Dirk