4 More Discussions You Might Find Interesting
1. Programming
Hi,
I'm learning libcurl so that I can use it in my GTK+/C program and went through the tutorial and code samples but it has only mentioned about POST form as the site I'm using has the GET form and only thing I found googling was using the command in xterm which I don't want. I would be very... (1 Reply)
Discussion started by: jaeezzy
1 Replies
2. Programming
Hello, I'm trying to use libcurl multi interface to fetch several data in parallel. I would expect this to be faster than performing repeated fetches using the easy interface, but for some reason I can't obtain any speed up at all: using the multi interface actually turns out to be MUCH slower than... (2 Replies)
Discussion started by: clalfa
2 Replies
3. Programming
Hi,
I codding a download manager,use libcurl library.i can download any file easily.But i want to show file detail in console.Some of them,
File Size
Percent
Left Time
Libcurl has some functions to use,but there isnt good documentation to understand them. i cant find any example to... (2 Replies)
Discussion started by: canerbulut
2 Replies
4. Programming
Hi
i m codding a programm,it can download any packet from ftp,I use libcurl library. But i want to use threads for downloading.(Multithreading).i cant get ftp file size from ftp and divide packet small pieces,like threads use.
Please share your experince with me ,thanks. (0 Replies)
Discussion started by: canerbulut
0 Replies
LEARN ABOUT REDHAT
curl_global_init
curl_global_init(3) libcurl Manual curl_global_init(3)
NAME
curl_global_init - Global libcurl initialisation
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_global_init(long flags);
DESCRIPTION
This function should only be called once (no matter how many threads or libcurl sessions that'll be used) by every application that uses
libcurl.
If this function hasn't been invoked when curl_easy_init is called, it will be done automatically by libcurl.
The flags option is a bit pattern that tells libcurl exact what features to init, as described below. Set the desired bits by ORing the
values together.
You must however always use the curl_global_cleanup function, as that cannot be called automatically for you by libcurl.
Calling this function more than once will cause unpredictable results.
This function was added in libcurl 7.8.
FLAGS
CURL_GLOBAL_ALL
Initialize everything possible. This sets all known bits.
CURL_GLOBAL_SSL
Initialize SSL
CURL_GLOBAL_WIN32
Initialize the Win32 socket libraries. (added in libcurl 7.8.1)
CURL_GLOBAL_NOTHING
Initialise nothing extra. This sets no bit.
RETURN VALUE
If this function returns non-zero, something went wrong and you cannot use the other curl functions.
SEE ALSO
curl_global_cleanup(3),
BUGS
None.
libcurl 7.9.1 13 Nov 2001 curl_global_init(3)