Mercurial > mxe-octave
view src/curl-test.c @ 1713:318f6b6153bd
merge
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 27 Mar 2011 23:36:16 +0200 |
parents | 94cdbe762889 |
children | f653602a0500 |
line wrap: on
line source
/* This file is part of mingw-cross-env. */ /* See doc/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; }