![]() 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. I know with ExecuteSQL I can pass data from FMP fields into the query using the operator. Not seeing anything regarding this in the documentation. Originally this plugin was developed by Goya to allow them to extend their BaseElements product with a single function that performs, dialog and xslt functions not otherwise available. Base Elements SQL: Insert into table using FM field values Hi All, I'm trying to figure out how to use the BE plugin to execute an SQL insert query which will insert FMP data. 3.1 : Made the option value optional and added named constants. baseelements plugin address a sql datasource for mac For technical issues related to the programming or building of the plugin code, use the GitHub issues pages. ![]() 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. |