Connecting Tech Pros Worldwide Help | Site Map

libcurl c++

Uday
Guest
 
Posts: n/a
#1: Mar 23 '07
Hi,
can anybody help me uploading a file (text/zip) to a remote
server using libcurl libraries in c++. when i searched in google, i
found that i've to use CURLOPT_POST, CURLOPT_INFILE which points to
the actual file & READFUNCTION which reads the content from the file
and puts in the buffer. i'm setting the file size also in
CURLOPT_INFILESIZE. i'm not getting any exception neither the expected
result. it would be helpful if somebody can give me a sample code.

Thanks in advance.

Uday.

Lionel B
Guest
 
Posts: n/a
#2: Mar 23 '07

re: libcurl c++


On Fri, 23 Mar 2007 06:43:49 -0700, Uday wrote:
Quote:
Hi,
can anybody help me uploading a file (text/zip) to a remote
server using libcurl libraries in c++. when i searched in google, i
found that i've to use CURLOPT_POST, CURLOPT_INFILE which points to
the actual file & READFUNCTION which reads the content from the file
and puts in the buffer. i'm setting the file size also in
CURLOPT_INFILESIZE. i'm not getting any exception neither the expected
result. it would be helpful if somebody can give me a sample code.
This is off-topic here, as comp.lang.c++ deals only with C++ *language*
issues.

I note that libcurl appears to have copious documentation

http://curl.haxx.se/docs/

and several mailing lists:

http://curl.haxx.se/mail/

I suggest you consult those.

--
Lionel B
Closed Thread