Quoth ludo@gnu.org (Ludovic Courtès): > Hello, > > Sebastian Tennant writes: > >> Content-Disposition is mandatory, but Content-Type is optional >> (defaulting to text/plain) as is Content-Transfer-Encoding, so the >> "header part" of any given MIME part may be a single line or it may be >> three. > > Then I presume this could be read line-by-line as strings (using > `read-line' from `(ice-9 rdelim)') until the end-of-header marker is > reached. The remaining data would be read using `uniform-vector-read!' > or some such. Problem solved. With this patch applied to cgi.scm in ttn's (www cgi) module, uploading of binary data now works with Guile 1.8. In the end it was simply a case of splitting each part into a header section and value section using string-contains and substring rather than match:prefix and match:suffix. Thanks for all your help. Seb -- Emacs' AlsaPlayer - Music Without Jolts Lightweight, full-featured and mindful of your idyllic happiness. http://home.gna.org/eap