diff options
Diffstat (limited to 'examples/curlex.nim')
-rwxr-xr-x | examples/curlex.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/curlex.nim b/examples/curlex.nim index 7f666f775..1d0f18ddd 100755 --- a/examples/curlex.nim +++ b/examples/curlex.nim @@ -1,10 +1,10 @@ import libcurl -var hCurl = curl_easy_init() +var hCurl = 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) + discard easy_setopt(hCurl, OPT_VERBOSE, True) + discard easy_setopt(hCurl, OPT_URL, "http://force7.de/nimrod") + discard easy_perform(hCurl) + easy_cleanup(hCurl) |