cURL libcurl Scheme Binding
accessing libcurl from Scheme
All you need to do is to install the Bigloo-scheme package and then you'll be able to access libcurl from within your Bigloo programs!
Visit the Bigloo homepage.
How to Install Install curl and libcurl first.
(module test (use (curl "curl-bigloo.scm"))) (print "CURL version: " (curl-version)) ;; Initialization (define curl-ptr (curl-easy-init)) (print "URL: " (curl-easy-setopt curl-ptr (CURLOPT-URL) "http://localhost/index.html")) (print "FILE: " (curl-easy-setopt curl-ptr (CURLOPT-FILE) (fopen "index.html" "w"))) (print "WRITE-HEADER: " (curl-easy-setopt curl-ptr (CURLOPT-WRITEHEADER) (fopen "header" "w"))) (print "Perform: " (curl-easy-perform curl-ptr)) ;; Clean up (curl-easy-cleanup curl-ptr) (exit)
What is Bigloo?
Page updated March 21, 2014.
web site info