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

CURL.SetTag

Sets the tag value.

Component Version macOS Windows Linux Server iOS SDK
CURL 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetTag"; curl { ; Value } )   More

Parameters

Parameter Description Example Flags
curl The CURL session handle. $curl
Value The new tag value. Get(RecordID) Optional

Result

Returns OK or error.

Description

Sets the tag value.
The tag value allows you to store any value related to the CURL transfer here like a RecordID in FileMaker.
In the finished script, you can then use the CURL handle passed as parameter to query your tag value.
See also CURL.SetFinishedScript and CURL.PerformAsync.

Examples

Sets tag to be record ID:

Set Variable [$r; Value:MBS("CURL.SetTag"; $curl; Get(RecordID))]

Test tag:

Set Variable [$curl; Value:MBS( "CURL.New" )]
#Set Tag to some value
Set Variable [$r; Value:MBS( "CURL.SetTag"; $curl; "Hello World")]
#Later read back the value
Set Variable [$tag; Value:MBS( "CURL.GetTag"; $curl)]

See also

Example Databases

Blog Entries

This function is free to use.

Created 12nd July 2015, last changed 27th December 2023


CURL.SetSucceededScript - CURL.SetUpdateProgressDialog