view src/curl-test.c @ 3578:583d3bf548e6

texinfo: update to 5.2 and install all tools * src/texinfo.mk: update to 5.2 and make/make install all. * src/texinfo-1-fixes.patch: updated patch for 5.2.
author John Donoghue <john.donoghue@ieee.org>
date Tue, 15 Apr 2014 21:32:17 -0400
parents 99516e73b368
children
line wrap: on
line source

/*
 * This file is part of MXE.
 * See index.html for further information.
 */

#include <curl/curl.h>

int main(int argc, char *argv[])
{
    CURL *curl;

    (void)argc;
    (void)argv;

    curl = curl_easy_init();
    if (!curl) {
        return 1;
    }

    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
    curl_easy_perform(curl);

    curl_easy_cleanup(curl);
    return 0;
}