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

CURL.SetFailedScript

Sets which script to call when a transfer failed.

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

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"

Result

Returns OK or error.

Description

Sets which script to call when a transfer failed.
Works with CURL.Perform, CURL.PerformAsync and CURL.PerformInBackground.

Does not work on server due to missing capability to trigger scripts in the plugin SDK with FileMaker Server.

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

See also

Release notes

Blog Entries

This function is free to use.

Created 27th December 2023, last changed 27th December 2023


CURL.SetFailedEvaluate - CURL.SetFinishedEvaluate

💬 Ask a question or report a problem