Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: habi on Jul 23, 2023, 11:53 AM

Title: In the making of curl for squirrel
Post by: habi on Jul 23, 2023, 11:53 AM
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