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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
CURL.SetOptionRandomFile
Sets random file.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
CURL
|
2.5 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
MBS( "CURL.SetOptionRandomFile"; curl; Value { ; Encoding } )
More
MBS(
"CURL.SetOptionRandomFile"; /* Sets random file. */
$curl; /* The CURL session handle. */
$Value; /* File path for SSL engine.e.g. "/tmp/test.txt" */
$Encoding) /* Optional; The text encoding for text parameter.
Default is UTF-8.e.g. "utf8" */
Less
Parameters
Parameter |
Description |
Example |
Flags |
curl |
The CURL session handle. |
$curl |
|
Value |
File path for SSL engine. |
"/tmp/test.txt" |
|
Encoding |
The text encoding for text parameter.
Default is UTF-8. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
"utf8" |
Optional |
Result
Returns "OK" on success.
Description
Sets random file.
Pass a file path. The file will be used to read from to seed the random engine for SSL. The more random the specified file is, the more secure the SSL connection will become.
Starting with version 8.0 the plugin will always use UTF-8 encoding for file path on Linux and macOS. For macOS we also do the unicode character normalization for file names for you.
See also RANDOM_FILE option in CURL manual.
See also
Release notes
- Version 8.0
- Changed CURL.SetOptionCAINFO, CURL.SetOptionCAPATH, CURL.SetOptionCookieFile, CURL.SetOptionCookieJar, CURL.SetOptionIssuerCert, CURL.SetOptionNETRCFile, CURL.SetOptionRandomFile, CURL.SetOptionSSHPrivateKeyfile, CURL.SetOptionSSHPublicKeyfile, CURL.SetOptionSSLCert, CURL.SetOptionSSLKey to use always UTF-8 on Mac/Linux and on Mac do the unicode transformation for decomposed characters to avoid trouble with special characters in file paths.
Blog Entries
Created 18th August 2014, last changed 12nd December 2017
CURL.SetOptionRTSPTransport
-
CURL.SetOptionRange
Feedback: Report problem or ask question.