JSON functions return those errors directly GMImage.NewFromContainer, GMImage.SetQuality and GMImage.WriteToJPEGContainer Various CURL Functions including CURL.SetOptionPut and CURL.OpenInputFileĬURL.SetOptionProxy, CURL.SetOptionProxyPort, CURL.SetOptionProxyUsername and CURL.SetOptionProxyPassword. Various CURL Functions including CURL.SetOptionPut and CURL.SetInputText Various CURL Functions including CURL.SetOptionPost and CURL.SetOptionPostFields Various CURL Functions including CURL.SetOptionCustomRequest and CURL.SetInputText Various CURL Functions including CURL.CreateOutputFile Various CURL Functions including CURL.SetOptionCustomRequest for delete That is different to other plugins which have complicated functions with a lot of options to do various tasks with one function.įiles.FileExists, Files.DirectoryExists and Files.ItemExistsįM.QueryTableNames or FM.QueryBaseTableNames It’s not always an exact match and in general MBS functions do smaller steps, so you need to combine severals of them. Normally I don’t spend time checking other plugins as I just develop new features based on what people ask and not what other plugins may do.īut well, I got a list of the Base Elements plugin functions and checked which MBS function call may help to do the same things. 4.0.2 : Renamed from BE_Curl_Set_OptionĬode Examples: BE_CurlSetOption ( "CURLOPT_HTTPAUTH" 1 ) Use "Basic" AuthenticationīE_CurlSetOption ( "CURLOPT_HTTPAUTH" "CURLAUTH_BASIC" )Use "Basic" AuthenticationīE_CurlSetOption ( "CURLOPT_HTTPAUTH" )Clear out any previous custom settings for this optionīE_CurlSetOptionClear all custom options at once.Comparing Base Elements Plugin to MBS FileMaker Plugin At the conferences there was the question about how MBS FileMaker Plugin compares to the Base Elements plugin. 3.1 : Made the option value optional and added named constants. option : the name of the option to set. See here for more detail :Ĭomplete List of supported CURL options :ĬURLOPT_DNS_CACHE_TIMEOUT // CURLOPT_DNS_USE_GLOBAL_CACHE - removed in 4.2.0 It appears to require a string matching either "provider1:provider2" or "provider1:provider2:region:service" and you set the keys via CURLOPT_USERPWD and "MY_ACCESS_KEY:MY_SECRET_KEY". There's now a native option for the complex AWS authentication method using the CURLOPT_AWS_SIGV4 option. You can use the temp folder for storing the cookie files, but will need to convert the result of Get ( TemporaryPath ) to a plugin pat first. To allow curl to store and re-use cookies, set the cookie jar ( for where to store them ) and the cookie file ( for where to read them to send ).īE_CurlSetOption ( "CURLOPT_COOKIEFILE" "/path/to/cookieFile.txt" )īE_CurlSetOption ( "CURLOPT_COOKIEJAR" "/path/to/cookieFile.txt" ) You can convert keys using these instructions : ) If it saysOPENSSH PRIVATE KEY instead, it may not work. You can open them in a text editor and you should see that line at the start. (more notes: PEM files that will work with curl doing SFTP areRSA PRIVATE KEY files. Other possible options for the types are "PEM", "DER" or"P12" for PKCS#12-encoded files. "PEM" is the default type, so can be left out. To use certificates for SSL Authentication you would do :īE_CurlSetOption ( "CURLOPT_SSLCERT" "/path/to/cert.pem" )īE_CurlSetOption ( "CURLOPT_SSLCERTTYPE" "PEM" )īE_CurlSetOption ( "CURLOPT_SSLKEY" "/path/to/key.pem" )īE_CurlSetOption ( "CURLOPT_SSLKEYTYPE" "PEM" ) The CURLOPT_HTTPAUTH andCURLOPT_PROXYAUTHoptions can also be set with theconstants : To return an option to it's default call the option name with no parameter : Restoring all values to their default can be done with The full list of options and their possible values is in the curl documentation here: Some require explicit values ( such as CURLOPT_USERAGENT ) and others require a flag. Sets one of the Curl library optional variables, as used in all of the HTTP functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |