Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

How can I upload file from device to server, using IWeb and multipart/form-data standarts?

1) Where should I put headers like:
Content-Type, Content-Disposition and so on? - in the WEBOPT_HEADER or WEBOPT_BODY (ande where will be body of the file) ?
2) Which of multipart/form-data headers I need to upload one file?

If it possible, please , give an example ( abstact or real ) - how to call
IWEB_GetResponce(.....)
And which values in WEBOPT_HEADER and WEBOPT_BODY are set...

For multipart post, you can create your own ISource and pass that to the IWEB interface.

For multipart post, you can create your own ISource and pass that to the IWEB interface.