473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

libcurl c++

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
1 3312
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael T. Peterson | last post by:
Hi, What are the differences, if any, between these two libraries? The curl website doesn't mention php_curl.dll and php websites often use libcurl and php_curl interchangeably. Thanks, ...
0
by: loris128 | last post by:
A port of the famous libCURL for the .net platform http://sourceforge.net/projects/libcurl-net/ Has anyone used this? Is it good? >From a search in the newsgroops it seems like noone has...
0
by: Yandos | last post by:
Hello all, I'm sorry for a bit off-topic post, but curl does not have own newsgroup, so I hope someone might help me here... I need to feed form like the following using libcurl: <form...
1
by: Sylvain/11XX | last post by:
Dear all, In order to retrieve and parse a XML document over internet (through http) I use libcurl and expat in my C program. For some long item I have 2 callback, that's ok for the moment....
0
by: Raj | last post by:
Hi, I am newbie to programming with libcurl. the problem is i want to send my gmail username and password outside the browser and get access to my mail. this i am doing with LibCurl. Though i dont...
0
by: Raj | last post by:
Hi, I am newbie to programming with libcurl. the problem is i want to send my gmail username and password outside the browser and get access to my mail. this i am doing with LibCurl. Though i dont...
2
by: Giuseppe | last post by:
Hi everybody, this is my first post in this group since it is from little time that I have begun to learn c++. My problem is to post a web form using the libcurl library. The form is at this...
2
by: borucik | last post by:
I am trying to use libcurl with Visual C++ 2005 Express Edition. I downloaded the file from here: http://curl.haxx.se/dlwiz/?type=lib&os=Win32&flav=-&ver=2000%2FXP It is the 7.16.0 version of the...
3
by: Jake | last post by:
Hi, I am trying to make an application in C which must establish a telnet session with a remote server, execute some scripts on the remote server and close down the telnet session. I have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.