cURL
Your ad here would be seen by 100,000 unique vistors every month Haxx ad
libcurl
Automatically get a mirror near you







COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software, Online file storage and sharing, Online photo storage and sharing, Online store builder, Online contact management, Online email marketing, Online project management, Online issue tracking, Online notepad, Online publishing

SourceForge.net Logo

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.

Examples

(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)

Binding documentation
Use the C API manual and lookup a corresponding Scheme binding in curl-bigloo.scm.

Download
Get the curl-bigloo tarball

Credits
The Bigloo-curl binding was written by Kirill Lisovsky.

What is Bigloo?
You'll find more info on the official Bigloo web page.

donate! Page updated September 07, 2007.
web site info