1 2 3 4 5 6 7 8 9 10
import libcurl var hCurl = curl_easy_init() if hCurl != nil: discard curl_easy_setopt(hCurl, CURLOPT_VERBOSE, True) discard curl_easy_setopt(hCurl, CURLOPT_URL, "http://force7.de/nimrod") discard curl_easy_perform(hCurl) curl_easy_cleanup(hCurl)