summary refs log tree commit diff stats
path: root/examples/curlex.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2010-02-24 01:04:39 +0100
committerAndreas Rumpf <rumpf_a@web.de>2010-02-24 01:04:39 +0100
commitf41bd71e6152174c3b0819c7549fa431e8a01222 (patch)
tree35bec88bad6f84e9551316888744037e8d15e598 /examples/curlex.nim
parent6da95ed9ca899db702c6a7b17d2d7db14dbb0de4 (diff)
downloadNim-f41bd71e6152174c3b0819c7549fa431e8a01222.tar.gz
SQLite wrapper
Diffstat (limited to 'examples/curlex.nim')
-rw-r--r--examples/curlex.nim10
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)
+