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
- CURL.GetResultAsData
- CURL.GetResultAsEmail
- CURL.GetResultAsGIF
- CURL.GetResultAsJPEG
- CURL.GetResultAsPDF
- CURL.GetResultAsPNG
- CURL.GetResultAsText
- EmailParser.Free
- EmailParser.Inline
Release notes
- Version 10.0
- Added CURL.GetResultAsMime function.
Blog Entries
This function checks for a license.
Created 12nd December 2019, last changed 12nd December 2019
