Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionGet
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
Parameters
Parameter | Description | Example |
---|---|---|
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
- CURL.SetOptionCustomRequest
- CURL.SetOptionNetRC
- CURL.SetOptionNoBody
- CURL.SetOptionPort
- CURL.SetOptionPost
- CURL.SetOptionRange
- CURL.SetOptionSSLCert
- CURL.SetOptionSSLKey
- CURL.SetOptionTimeOut
- CURL.SetOptionUseSSL
Example Databases
FileMaker Magazin
Created 18th August 2014, last changed 19th June 2019
CURL.SetOptionGSSAPIDelegation - CURL.SetOptionHAProxyProtocol
