post-url with content-type form-data

For the Compleat Fan
Locked
ino-news
Posts: 17
Joined: Sat Jan 13, 2007 3:20 am
Location: germany

post-url with content-type form-data

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked