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.SetOptionPut
Sets transfer to be a HTTP Put.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 2.5 | Yes | Yes | Yes | Yes | Yes |
Deprecated
This function was deprecated. Use CURL.SetOptionUpload instead.
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether this is a PUT request. | 1 |
Result
Returns "OK" on success.
Description
Sets transfer to be a HTTP Put.A parameter set to 1 tells the library to use HTTP PUT to transfer data. The data should be set with CURL.SetInputText or other functions.
This option is deprecated and starting with version 7.12.1 you should instead use CURL.SetOptionUpload.
See also PUT option in CURL manual.
Examples
Turns put on:
MBS( "CURL.SetOptionPut"; $curl; 1 )
Make request with PUT:
Set Variable [$curl; Value:MBS("CURL.New")]
Set Variable [$result; Value:MBS("CURL.SetOptionURL"; $curl; "http://test.test/test/hello.txt")]
Set Variable [$result; Value:MBS("CURL.SetOptionUpload"; $curl; 1)]
Set Variable [$result; Value:MBS("CURL.SetOptionPut"; $curl; 1)]
Set Variable [$result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password)]
Set Variable [$result; Value:MBS("CURL.SetOptionUserName"; $curl; CURL Test::Name)]
Set Variable [$result; Value:MBS("CURL.SetInputText"; $curl; "This is content to upload")]
# run
Set Field [CURL Test::Result; MBS("CURL.Perform"; $curl)]
# check results
Set Field [CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl)]
Set Variable [$result; Value:MBS("CURL.Release"; $curl)]
See also
- CURL.SetInputText
- CURL.SetOptionPort
- CURL.SetOptionPost
- CURL.SetOptionPreQuote
- CURL.SetOptionProxy
- CURL.SetOptionRange
- CURL.SetOptionTimeOut
- CURL.SetOptionUpload
- CURL.SetOptionURL
- CURL.SetOptionUserName
Example Databases
- CURL/CURL get and put/CURLS get and put
- CURL/WebServices/CURL FMS Admin API v17
- CURL/WebServices/CURL FMS Admin API v18
Blog Entries
Created 18th August 2014, last changed 12nd June 2020
CURL.SetOptionProxyUsername - CURL.SetOptionQuote
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos