In the making of curl for squirrel

Started by habi, Jul 23, 2023, 11:53 AM

Previous topic - Next topic

habi

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..

and


The output:


Now the plugin has only three functions:
curl_easy_init
curl_easy_setopt
curl_easy_perform
curl_easy_cleanup