Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.GetResultAsMime

Queries the result of the CURL transfer and parses as mime data.

Component Version macOS Windows Linux Server iOS SDK
CURL 10.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.GetResultAsMime"; curl )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl

Result

Returns email parser reference number or error.

Description

Queries the result of the CURL transfer and parses as mime data.
If you got an answer from a web service with multi part mime output, this function will parse it with our mime parser (normally used for emails) and then return you the object reference.
Please use EmailParser.Free to free it later and release memory.

Examples

Get image objects:

Set Variable [ $email ; Value: MBS("CURL.GetResultAsMime"; $curl) ]
Set Field [ test::Part1 ; MBS( "EmailParser.Inline"; $email; 0; "container") ]
Set Field [ test::Image ; MBS( "EmailParser.Inline"; $email; 1; "container") ]
Set Variable [ $email ; Value: MBS("EmailParser.Free"; $email) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 12nd December 2019, last changed 12nd December 2019


CURL.GetResultAsJPEG - CURL.GetResultAsPDF