cURL / Mailing Lists / curl-library / Single Mail


HTTP client as new child process

From: Ajay Tanpure <>
Date: Tue, 19 Feb 2013 15:16:14 +0530

I am using curl library in my application to make http post request and
receive the responses from the server.
I have used the ubuntu 12.04 LTS.
I have created the new child process using fork() system call.
I get data from parent process to child using pipe.
But curl_global_init() function didn't work because of which other curl
functions like curl_setopt(), curl_init() didn't work.
global_init function is called in child process (i.e pid == 0).
Can anyone tell me how to make curl function work in child process.


List admin:
Received on 2013-02-19