LibUrl - and multipart/form data

Dave Cragg dcragg at lacscentre.co.uk
Sat May 4 08:24:01 EDT 2002


At 11:48 am +0000 4/5/02, David Bovill wrote:
>Does the library support posting data with this format?
>
>Would this work if I:
>
>     1)  use a function to encode the data as multipart/form encoded,
>
>     2)  set the httpheaders to include "Content type: mulipart/form-data;
>boundary=---- someboundary
>
>     3)  post the encoded data using libUrl?

libUrl will support it. That is, it will include in the http request 
any headers set in the httpheaders, and will try to post any data you 
ask it to. Whether it will work will depend on what the server end is 
expecting. Give it a try and see.

Note: It should be "Content-type" with a hyphen.

Cheers
Dave Cragg



More information about the metacard mailing list