3.1. BUFFER_SIZE integer
3.2. CAINFO string
3.3. COOKIE string
3.4. COOKIEFILE string
3.5. CUSTOMREQUEST string
3.6. FILE
3.7. FTPPORT string
3.8. HEADERFILE string
3.9. INFILE string
3.10. INTERFACE string
3.11. INTEXT string
3.12. KRB4LEVEL string
3.13. PROXY string
3.14. PROXYPORT integer
3.15. PROXYUSERPWD string
3.16. RANDOM_FILE string
3.17. RANGE string
3.18. REFERER string
3.19. SSLCERT string
3.20. SSLCERTPASSWD string
3.21. URL string
3.22. USERAGENT string
3.23. USERPWD string
3.24. WRITEINFO string
3.25. EGDSOCKET string
3.26. POSTFIELDS string
3.27. HTTPPROXYTUNNEL flag
3.28. VERBOSE flag
3.29. NOPROGRESS flag
3.30. HEADER flag
3.31. NOBODY flag
3.32. FAILONERROR flag
3.33. UPLOAD flag
3.34. POST flag
3.35. CRLF flag
3.36. FTPLISTONLY flag
3.37. FTPAPPEND flag
3.38. NETRC flag
3.39. FOLLOWLOCATION flag
3.40. TRANSFERTEXT flag
3.41. CLOSEPOLICY
3.42. PUT flag
3.43. SSL_VERIFYPEER flag
3.44. FILETIME flag
3.45. FRESH_CONNECT flag
3.46. FORBID_REUSE flag
3.47. HTTPGET flag
3.48. TIMEOUT integer
3.49. LOW_SPEED_LIMIT integer
3.50. LOW_SPEED_TIME integer
3.51. RESUME_FROM integer
3.52. SSLVERSION integer
3.53. TIMECONDITION string
3.54. TIMEVALUE integer
3.55. MAXREDIRS integer
3.56. MAXCONNECTS integer
3.57. CONNECTTIMEOUT integer
3.58. HTTPHEADER string
3.59. NOHTTPHEADER flag
3.60. QUOTE string
3.61. NOQUOTE flag
3.62. POSTQUOTE string
3.63. NOPOSTQUOTE flag
3.64. HTTPPOST string
3.65. ERRORBUFFER not implemented
3.66. Options not implemented
Call this function to set the various options of the actual curl session.
Usage:
curl::option CURL, "option" [, value]
The various options that the current version of the module supports are listed in the following sections.
Note that the documentation is mainly copied from the original CURL lib documentation.
Some of the options require a string as a parameter. The strings usually should not contain zero character.
The exception is the option POSTFIELDS, which is handled in a special way to allow the programmer to send
arbitrary binary data as HTTP POST parameter.
The option names in the section titles in this document are followed by one of the words string, integer and flag.
-
Options followed by the word string need string argument. If the option value is not specified zero length
string is used. Because this is nonsense in most cases, you better use a third string argument for these options.
-
Options followed by the word flag are yes/no type options. Presenting them without value means switching the
option on. To switch such an option off the programmer has to explicitely specify zero value as third argument.
In other words omitting the option value in such a case is the same as specifying 1 or TRUE or any other
non-zero value. To switch off a flag option you can specify the value as FALSE (which is zero in ScriptBasic)
for more readability.
curl::option CURL,"VERBOSE"
curl::option CURL,"VERBOSE",TRUE
curl::option CURL,"VERBOSE",1
are the same as well as the oposit
curl::option CURL,"VERBOSE",FALSE
curl::option CURL,"VERBOSE",0
are the same.
-
Options followed by the word integer accept integer value. If the value is missing for such an option zero is used.
For example:
curl::option CURL,"RESUME_FROM"
curl::option CURL,"RESUME_FROM",0
are the same.
The option names are implemented case sensitive in this module, thus you can not use "verbose"
instead of "VERBOSE". Also the programmer should type the option names precisely, no mispelling is
tolerated by the program.
[<<<] [>>>]