Page 1 of 1

post-url with content-type form-data

Posted: Mon Mar 26, 2007 6:19 pm
by ino-news
the manual states that i can use post-url with any valid content-type,
but the example just shows unencoded get-type query strings, where
tokens are separated by `&' (ampersands) and tokens are name, value
pairs separated by `=' (equal sign). now i need to automatically fill
a form demanding content-type "form-data", which is different, more like
multi part MIME emails. example:

Content-Type: multipart/form-data; boundary=12345
Content-Length: 1525

--12345
Content-Disposition: form-data; name="action"

flexsend
--12345
Content-Disposition: form-data; name="spamid"

1261694132
--12345
Content-Disposition: form-data; name="crc"

2cf33919657cb46919b903201d8999cb
--12345
Content-Disposition: form-data; name="date"

25 Mar 2007 09:53:52 -0000
--12345

and so forth. how do i tell post-url to encode this format? --clemens

Posted: Mon Mar 26, 2007 8:43 pm
by Lutz
'post-url' will not do the encoding by itself it only can accept the content-type description, but the encoding itself must be supplied by the programmer. Most forms on the net accept several types of encodings and will accept the default type.

Lutz