curl-library
Re: Problem with ming32 and curl with ssl enabled
From: Michael Wallner <mike_at_iworks.at>
Date: Sun, 30 Apr 2006 10:51:59 +0200
Date: Sun, 30 Apr 2006 10:51:59 +0200
Surfman19_at_gmx.at wrote:
> Hi,
>
> i compiled this sample code:
> #include <stdio.h>
> #include <curl/curl.h>
>
> int main(void)
> {
> CURL *curl;
> CURLcode res;
>
> curl = curl_easy_init();
> if(curl) {
> curl_easy_setopt(curl, CURLOPT_URL, "http://rafb.net");
> res = curl_easy_perform(curl);
>
> /* always cleanup */
> curl_easy_cleanup(curl);
> }
> return 0;
> }
You should call curl_global_init() once in your application.
Does that help?
Regards,
-- Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gzReceived on 2006-04-30