By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,874 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.

libcurl c++

P: n/a
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.

Mar 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 23 Mar 2007 06:43:49 -0700, Uday wrote:
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
Mar 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.