libcurl c++

Discussion in 'C++' started by Uday, Mar 23, 2007.

  1. Uday

    Uday Guest

    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.
     
    Uday, Mar 23, 2007
    #1
    1. Advertising

  2. Uday

    Lionel B Guest

    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
     
    Lionel B, Mar 23, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sylvain/11XX

    libcurl and expat

    Sylvain/11XX, May 23, 2006, in forum: XML
    Replies:
    1
    Views:
    572
    Joe Kesselman
    May 23, 2006
  2. Replies:
    0
    Views:
    485
  3. Raj

    Post data using the libcurl

    Raj, Nov 9, 2006, in forum: Python
    Replies:
    0
    Views:
    338
  4. Raj

    Post data using the libcurl

    Raj, Nov 9, 2006, in forum: Python
    Replies:
    0
    Views:
    294
  5. Raj
    Replies:
    0
    Views:
    1,144
Loading...

Share This Page