Questions tagged [libcurl]

Use this tag only for questions related to the multiprotocol internet transfer library, for question related to command line tool please use the specific curl tag

libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more!

libcurl is highly portable, it builds and works identically on numerous platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HPUX, IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOs, Mac OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS and more...

libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported, fast, thoroughly documented and is already used by many known, big and successful companies and numerous applications.

libcurl provides a few different APIs, the most common and popular one being the easy interface - which does internet transfers synchronously. The documentation for this is for the C API but most language bindings follows that pretty closely which makes the C documentation fairly universal.

See also:

3187 questions
1
vote
2 answers

What is the alternative to CURLOPT_MUTE?

I'm using libcurl as part of my software for implementing an FTP client. One thing that I must do before sending files to the FTP server is to make a connectivity check by listing the the content of the target directory (to make sure I can connect…
e271p314
  • 3,841
  • 7
  • 36
  • 61
1
vote
1 answer

How to make libcurl follow redirection by default?

I'm using libnetcdf for retrieving data trought OPeNDAP protocol. libnetcdf is using libcurl for the http transfert. But libcurl is not following HTTP redirection. It needs CURLOPT_FOLLOWLOCATION set to 1. Is there a way to make libcurl follow…
user1219721
  • 783
  • 1
  • 8
  • 16
1
vote
2 answers

is it possible to suppress user libraries from system libraies in linux

I'm creating a application that is using a pre-compiled third party shared library files.To use these I'm required to set the LD_LIBRARY_PATH or create a conf file under /etc/ld.so.conf.d/application.conf, My problem is There is a system…
Thiyagarajan
  • 1,271
  • 1
  • 14
  • 19
1
vote
1 answer

How many times the callback function would be called which is set in curl_easy_setopt()?

I wrote a callback function to write data into a string variable transferred by curl_easy_perform. I've found that the callback function would be called several times (I don't know exactly how many ). Will The string variable content be…
Bruce Yang
  • 367
  • 1
  • 5
  • 17
1
vote
2 answers

using libcurl to call Amazon s3 RESTful service

I am writing a piece of c++ code with libcurl to call Amazon s3 RESTful service as follows: void SampleOfS3Get() { //Init curl curl_global_init(CURL_GLOBAL_ALL); CURL* curlHandle = curl_easy_init(); //Init var char* curlErrStr…
BUPTOrange
  • 56
  • 1
  • 6
1
vote
2 answers

buffer getting truncated after getting a huge response using CURL, from a webpage

I am using libcurl for performing HTTP request and response to my webpage. But when getting the response, I am not getting the complete server response. the response lines get truncated at one point. e.g 10-25 15:53:22.264: XXX(14847):…
Sunil
  • 521
  • 1
  • 7
  • 24
1
vote
2 answers

Compiling shared and static libraries into a shared library using the Android NDK

I have come across a problem with trying to compile cURL with SSL support into an app. So far, I have successfully compiled the openSSL package into libcrypt.so and libssl.so. I believe I have successfully compiled a version of libcurl.a with SSL…
1
vote
1 answer

CMake cannot find libcurl-config.cmake

I'm trying to compile code with cmake. The code was imported from Windows onto a Raspberry Pi with Debian OS. The code works fine when compiling on Windows. Here is the error when I try to compile: CMake Error at CMakeLists.txt:6 (FIND_PACKAGE): …
user2943477
  • 11
  • 1
  • 2
1
vote
4 answers

Custom cocoa installers and application dependencies

I am working on a Cocoa application that uses FTP and SFTP transfers, and the best way I've found to accomplish this is by using libcurl. Now I'm pretty sure that Mac OS X does not ship with libcurl installed, and even if it did it most likely…
nrj
  • 1,701
  • 2
  • 22
  • 37
1
vote
1 answer

How should the POSTFIELD look like?

I have recently starting using libcurl, when I curl via command line it looks like this and POST works fine: curl -i -X POST http://192.168.1.128:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d {"auth":…
mobykhn
  • 221
  • 1
  • 4
  • 14
1
vote
1 answer

request copied from firebug as cURL request doesn't work

I am developing a bot application that login into a chat application (et chat) and send messages to users. The application itself send Ajax requests periodically to retrieve online users and It returns the users list as json object like a…
CoderInNetwork
  • 2,923
  • 4
  • 22
  • 39
1
vote
1 answer

How do I get a page's "full source"?

I've got LibCURL getting page's source from the web, going through it and picking data out. Everything is working great bar one page. I had this problem during offline testing while using ifstream and the page source saved to a .html file.…
Makka
  • 234
  • 4
  • 13
1
vote
0 answers

Fail in installing libcurl4-gnutls-dev in AWS ubuntu

I try to do the following install (in order to upgrade git) $sudo apt-get install libcurl4-gnutls-dev and i get these errors: After this operation, 13.6 MB of additional disk space will be used. Do you want to continue [Y/n]? y Err…
murvinlai
  • 48,919
  • 52
  • 129
  • 177
1
vote
0 answers

Login to a website while using libcurl and C++

I'm new to stackoverflow so please don't break me up if there was any questions regarding this. So I want to login to a website by using libcurl, this is the code fragment I got from the website (regarding the 2 input boxes needed):
1
vote
2 answers

Error: InvalidAction on DescribeRegions API call (Amazon AWS/EC2 API)

I'm writing an app to interact with the Amazon EC2 API and since I've never done this before, I decided to start with something easy like DescribeRegions. I'm doing this in C so there are no easy to use libraries out there for this so I'm having to…
amrith
  • 953
  • 6
  • 17
1 2 3
99
100