Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  


Sets the transfer to be a HTTP Get.

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


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


Returns "OK" on success.


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.


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.

MBS Xojo Chart Plugins

Start Chat