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

CURL.SetSucceededEvaluate

Sets expression to be run when transfer succeeded.

Component Version macOS Windows Linux Server iOS SDK
CURL 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetSucceededEvaluate"; curl; Expression )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Expression The expression to evaluate.
Can be in local language of FileMaker Pro or english.
For Server must always be in english.
"Let ( $$Done = 1 ; 1 )"

Result

Returns OK or error.

Description

Sets expression to be run when transfer succeeded.
Works with CURL.Perform, CURL.PerformAsync and CURL.PerformInBackground.

In the expression the text $$ID$$ will be replaced when evaluated with the curl reference, so you can pass it to other functions if needed.

The transfer is successful if CURL.Perform internally returns no error. For http requests we also check response code for an error.

Examples

Set what to do when transfer succeeds:

Set Variable [ $r; Value: MBS("CURL.SetSucceededEvaluate"; curl; "MBS(\"CURL.Release\"; $$ID$$)" ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 27th December 2023, last changed 15th January 2024


CURL.SetProgressScript - CURL.SetSucceededScript