Import "c:\scriptbasic\include\curl.bas"
Import "c:\scriptbasic\include\cio.bas"
on error goto CURL_ERROR_CURL
CURL = curl::init()
curl::Option CURL,"CONNECTTIMEOUT",110
curl::option CURL,"FRESH_CONNECT"
curl::option Curl,"BUFFER_SIZE",1024
curl::option CURL,"MAXREDIRS",7
curl::option CURL,"REFERER","https://www.google.com"
curl::option CURL,"USERAGENT","Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
curl::option CURL,"COOKIEFILE","cookies.txt"
curl::option CURL,"URL","https://www.google.com"
curl::option CURL,"FILE","file.txt"
curl::perform CURL
curl::finish CURL
stop
rem ====================
CURL_ERROR_CURL:
PRINT "Some error happened while trying to download ScriptBasic home page. The error message is:\n"
PRINT curl::error()
STOP
curl::option CURL,"URL","https://www.google.com"
without the https protocol works correctly but fails https (error code: (0): error &H72: Built in function has too few arguments)
could you help me please,ty