diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2010-02-24 01:04:39 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2010-02-24 01:04:39 +0100 |
commit | f41bd71e6152174c3b0819c7549fa431e8a01222 (patch) | |
tree | 35bec88bad6f84e9551316888744037e8d15e598 /examples/curlex.nim | |
parent | 6da95ed9ca899db702c6a7b17d2d7db14dbb0de4 (diff) | |
download | Nim-f41bd71e6152174c3b0819c7549fa431e8a01222.tar.gz |
SQLite wrapper
Diffstat (limited to 'examples/curlex.nim')
-rw-r--r-- | examples/curlex.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/curlex.nim b/examples/curlex.nim new file mode 100644 index 000000000..7f666f775 --- /dev/null +++ b/examples/curlex.nim @@ -0,0 +1,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) + |