post-url with content-type form-data

Started by ino-news, March 26, 2007, 11:19:12 AM

Previous topic - Next topic

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
regards, clemens

Lutz

#1
'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