Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curl_easy_init(3) [redhat man page]

curl_easy_init(3)						  libcurl Manual						 curl_easy_init(3)

NAME
curl_easy_init - Start a libcurl easy session SYNOPSIS
#include <curl/curl.h> CURL *curl_easy_init( ); DESCRIPTION
This function must be the first function to call, and it returns a CURL easy handle that you must use as input to other easy-functions. curl_easy_init intializes curl and this call MUST have a corresponding call to curl_easy_cleanup when the operation is complete. RETURN VALUE
If this function returns NULL, something went wrong and you cannot use the other curl functions. SEE ALSO
curl_easy_cleanup(3), curl_global_init(3) BUGS
Surely there are some, you tell me! libcurl 7.8.1 4 March 2002 curl_easy_init(3)

Check Out this Related Man Page

curl_easy_init(3)						  libcurl Manual						 curl_easy_init(3)

NAME
curl_easy_init - Start a libcurl easy session SYNOPSIS
#include <curl/curl.h> CURL *curl_easy_init( ); DESCRIPTION
This function must be the first function to call, and it returns a CURL easy handle that you must use as input to other easy-functions. curl_easy_init initializes curl and this call MUST have a corresponding call to curl_easy_cleanup(3) when the operation is complete. If you did not already call curl_global_init(3), curl_easy_init(3) does it automatically. This may be lethal in multi-threaded cases, since curl_global_init(3) is not thread-safe, and it may result in resource problems because there is no corresponding cleanup. You are strongly advised to not allow this automatic behaviour, by calling curl_global_init(3) yourself properly. See the description in libcurl(3) of global environment requirements for details of how to use this function. RETURN VALUE
If this function returns NULL, something went wrong and you cannot use the other curl functions. SEE ALSO
curl_easy_cleanup(3), curl_global_init(3), curl_easy_reset(3) libcurl 7.8.1 4 March 2002 curl_easy_init(3)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

Libcurl - Progress Data

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

2. Programming

curl_easy_perform, how to keep the result?

hi, i run the code below, it return me correct result and message. but may i know how do i keep the result "1 Success" in a variable? is it i need to using the WRITEFUNCTION and WRITEDATA? may i know how to do? could anyone can give me the source for keep the result in a variable? ... (1 Reply)
Discussion started by: kokkee
1 Replies

3. Programming

libcurl multi interface problem

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

4. Programming

Setting X-Forwarded-For In C

Question, I've been trying to find information for setting the X-Forwarded-For header in C programs, or basically how spoofing it works. I've seen how to do this in ruby, python, and even with curl. I tried searching Google for it, but have came up empty handed. Any links, examples or advice much... (11 Replies)
Discussion started by: Azrael
11 Replies

5. Shell Programming and Scripting

How to get contents of php page using curl in C language?

Hi, I want to write code in C using curl library to get output of php page , the output is in xml. Thanks (2 Replies)
Discussion started by: nitks.abhinav
2 Replies