Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  

CURL.SetOptionGet

Sets the transfer to be a HTTP Get.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionGet"; curl; Value )   More

Parameters

Parameter Description Example value
curl The CURL session handle. $curl
Value Whether to do a GET transfer. 1

Result

Returns "OK" on success.

Description

Sets the transfer to be a HTTP Get.
Pass a number. If the number is 1, this forces the HTTP request to get back to GET. Usable if a POST, HEAD, PUT, or a custom request has been used previously using the same curl handle.

When setting value to 1, it will automatically set CURL.SetOptionNoBody to 0.

If you need POST, please use CURL.SetOptionPost. If you need DELETE, PATCH or others, please use CURL.SetOptionCustomRequest function.

Examples

Turns get on:

MBS( "CURL.SetOptionGet"; $curl; 1 )

See also

Example Databases

Created 18th August 2014, last changed 19th June 2019


CURL.SetOptionGSSAPIDelegation   -   CURL.SetOptionHAProxyProtocol

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins