CURL.SetOptionGet
-----------------

Sets the transfer to be a HTTP Get.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionGet"; curl; Value ) 

**MBS**( **"CURL.SetOptionGet";** /\* Sets the transfer to be a HTTP Get. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to do a GET transfer.e.g. 1 \*/ 

### 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](CURLSetOptionNoBody.md) to 0.  
  
If you need POST, please use [CURL.SetOptionPost](CURLSetOptionPost.md). If you need DELETE, PATCH or others, please use [CURL.SetOptionCustomRequest](CURLSetOptionCustomRequest.md) function.  
### Examples

Turns get on:

 MBS ( "CURL.SetOptionGet"; $curl ; 1 )  
### See also

- [CURL.SetOptionCustomRequest](CURLSetOptionCustomRequest.md)
- [CURL.SetOptionNetRC](CURLSetOptionNetRC.md)
- [CURL.SetOptionNoBody](CURLSetOptionNoBody.md)
- [CURL.SetOptionPort](CURLSetOptionPort.md)
- [CURL.SetOptionPost](CURLSetOptionPost.md)
- [CURL.SetOptionRange](CURLSetOptionRange.md)
- [CURL.SetOptionSSLCert](CURLSetOptionSSLCert.md)
- [CURL.SetOptionSSLKey](CURLSetOptionSSLKey.md)
- [CURL.SetOptionTimeOut](CURLSetOptionTimeOut.md)
- [CURL.SetOptionUseSSL](CURLSetOptionUseSSL.md)

### Example Databases

- [CURL/WebServices/Magento2 REST API](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Magento2%20REST%20API.shtml#2ScriptAnchor_)

### FileMaker Magazin

- [Ausgabe 2/2024, Seite 17](https://filemaker-magazin.de/neuigkeit/4257-Appetithappen-FMM_202402)

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

  
[CURL.SetOptionGSSAPIDelegation](CURLSetOptionGSSAPIDelegation.md) - [CURL.SetOptionHAProxyProtocol](CURLSetOptionHAProxyProtocol.md)

[HTML Version](CURLSetOptionGet.shtml)