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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.SetOptionGet
Sets the transfer to be a HTTP Get.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
Created 18th August 2014, last changed 19th June 2019
CURL.SetOptionGSSAPIDelegation - CURL.SetOptionHAProxyProtocol
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins