Giter VIP home page Giter VIP logo

fortran-curl's Introduction

fortran-curl

A collection of ISO C binding interfaces to libcurl for Fortran 2008. At the moment, this project is just a proof of concept. Compilation has been tested with GNU Fortran 10 and cURL 7.72.0.

Dependencies

Install cURL with development headers. On FreeBSD, run:

# pkg install ftp/curl

Compilation

Clone the repository and then run make to build the interfaces:

$ git clone https://github.com/interkosmos/fortran-curl
$ cd fortran-curl/
$ make

You can override the default compiler by passing the FC argument, for example:

$ make FC=gfortran10

On Linux, you may want to change the prefix to /usr:

$ make PREFIX=/usr

Link your Fortran application with libfortran-curl.a -lcurl.

Examples

Examples are provided in directory examples/:

  • download fetches a remote file.
  • gopher prints the contents of a remote Gopher map file.
  • http makes an HTTP GET request.
  • imap examines the INBOX of an IMAP mailbox (SSL).
  • smtp sends an e-mail via SMTP (SSL).
  • version outputs cURL version information.

Build an example with:

$ make <name>

Coverage

C Function Name Fortran Interface Name Bound
curl_easy_init curl_easy_init
curl_easy_perform curl_easy_perform
curl_easy_cleanup curl_easy_cleanup
curl_easy_setopt curl_easy_setopt, curl_easy_setopt_
curl_slist_append curl_slist_append
curl_slist_free_all curl_slist_free_all
curl_version_info curl_version_info
C Constant Name Fortran Interface Name Bound
CURLVERSION_NOW curl_version_now

Licence

ISC

fortran-curl's People

Contributors

interkosmos avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.