Hi All!
Could you please provide some example to use libcurl: https://github.com/Araq/libcurl
Thanks very much
import libcurl
let curl = easy_init()
let code = easy_setopt(curl, OPT_URL)
How can I do after that?
How can I get tha data from some "http://example.com"?
it works:
let code = easy_setopt(curl, OPT_URL, "http://example.com")
sorry
Hi, why not using httpclient? It's quite easy to use:
import httpclient
proc main() =
var content = getContent("http://example.com")
# do sth. with the content
main()