curl-library
Re: libcurl c++
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Mar 2007 09:14:41 +0200 (CEST)
Date: Mon, 26 Mar 2007 09:14:41 +0200 (CEST)
On Mon, 26 Mar 2007, Uday wrote:
> can anybody help me uploading a file (text/zip) to a remote server
> using libcurl libraries in c++.
Upload how? What protocol for example?
> 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.
That works for regular HTTP POST, yes, but that's rarely what people actually
mean when they talk about "file upload".
> i'm setting the file size also in CURLOPT_INFILESIZE. i'm not getting any
> exception neither the expected result.
So what is the server expecting you to do? How does your current attempt look
like?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-03-26