Hello friends,
In the experiment of introducing curl to squirrel, i got positive results
This is the file: curl_test.nut
curl<-curl_easy_init()
curl_easy_setopt(curl,10002,"https://example.com")
curl_easy_setopt(curl,10065,"curl-ca-bundle.crt")
print("Get set go...");
curl_easy_perform(curl)
the plugin..
(https://i.imgur.com/MnpjZv4.png)
and
(https://i.imgur.com/z9rxJJs.png)
The output:
(https://i.imgur.com/tQQ9HkV.png)
Now the plugin has only three functions:
curl_easy_init
curl_easy_setopt
curl_easy_perform
curl_easy_cleanup