cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP client as new child process

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

Hello,
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.

Thanks

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-19