Skip to content
cyclone-scheme edited this page Jul 6, 2021 · 4 revisions

Content automatically generated. Contributions from the community are very welcomed at the bottom of this file.

curl

Index

Intro

Cyclone Scheme bindings for the cURL library.

Dependencies

None

Test-dependencies

None

Foreign-dependencies

None

API

(cyclone curl)

[procedure] (curl-global-init flags)

Initialize cURL with the given flags integer value.

This function is only required if curl-easy-init is not called.

[procedure] (curl-easy-init)

Initialize cURL with default options and return a Cyclone Opaque object that maybe used for subsequent calls.

[procedure] (curl-easy-cleanup opq)

Cleans up a cURL object initialized via easy init.

[procedure] (curl-easy-setopt opq option param)

Set option, with given parameter param, on the cURL easy handle opq

[procedure] (curl-easy-perform opq)

Perform cURL request using the given easy handle stored in opq.

[procedure] (curl-version)

Returns the cURL version as a string.

Examples

(import (cyclone curl)
        (scheme base))

(define curl (curl-easy-init))
(curl-easy-setopt curl CURLOPT_URL "http://example.com")
(curl-easy-perform curl)
(curl-easy-cleanup curl)

Author(s)

Justin Ethier

Maintainer(s)

Justin Ethier

Version

"0.2.0"

License

MIT

Tags

networking web http


Contributions from the community: