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
1 answer

CURLOPT_COOKIE is cause a timeout

I'm trying to pass php curl the current logged in session (so I don't have to log in with curl before sending form data). Seems like no matter what I try CURLOPT_COOKIE causes the page to timeout: function postForm($post_data, $URL) { //traverse…
red888
  • 27,709
  • 55
  • 204
  • 392
1
vote
1 answer

FreeBSD 9.2: how do I install libcurl with openssl?

On Ubuntu I use this command: apt-get install libcurl4-openssl-dev On FreeBSD, I've tried this, which doesn't work: pkg_add -r libcurl4-openssl-dev I've tried looking through the list of ports here, and didn't see anything…
Alan
  • 3,715
  • 3
  • 39
  • 57
1
vote
2 answers

cURL - "hanging" socket connection on Linux

I have a program to send POST request to a server. I'm using cURL to send request. My program run on Windows and Linux (on the moment Ubuntu 9.10). When server receive request it processing it and return error code (0000 if no errors) and error…
Dmitriy
  • 3,305
  • 7
  • 44
  • 55
1
vote
3 answers

Can I put multiple alternative certificates for a host, in a single certificate file?

I have a web service which is secured through HTTPS. I also have client software which talks to this web service, using libcurl (which may be linked to OpenSSL, or linked to GnuTLS; I don't know which one, it depends on how the user installed…
Hongli
  • 18,682
  • 15
  • 79
  • 107
1
vote
1 answer

PHP-SharePoint-Lists-API libCurl gives 411 error with NTLM auth

I'm using the Git PHP-SharePoint-Lists-API library with NTLM auth. It sends a POST request via lib cURL (I'm running Windows PHP 5.5.11 with lib cURL 7.35.0). Problem is that the NTLM auth response generated by cURL doesn't include a Content-Length…
Larry K
  • 47,808
  • 15
  • 87
  • 140
1
vote
1 answer

Specific number of threads c++

I'm writing a crawler in c++, the function crawler downloads a website and extracts all the links from it. I wanted It to run the function crawler in multiple threads, each thread with different parameters and also I want to specify the amount of…
patrick1337
  • 57
  • 1
  • 2
  • 8
1
vote
2 answers

how to compile project include libcurl "undefined reference"

I'm using compile downloaded source code and try to make my c++ project but these error appear. user1@ubuntu:~$ make g++ -std=c++0x -g -Wall -Werror -L/home/user1/project0/libcurl/lib/libcurl.a -I/home/user1/proj/libcurl/include -c my-curl.cpp -o…
Bear0x3f
  • 142
  • 1
  • 16
1
vote
2 answers

“could not resolve host” error in libcurl using c++

The code snippet is as follows: const int BUFFERSIZE = 50*1024; char lLoadedData[BUFFERSIZE]; memset(lLoadedData, 0, sizeof(lLoadedData)); mstrURL = "http://www.google.com"; CURL* lCurlHandle = curl_easy_init(); if (lCurlHandle) { //url if…
cao lei
  • 891
  • 1
  • 9
  • 19
1
vote
1 answer

libcURL unresolved externals after 7.36 rebuild

Ok, doing an old VC project did not work, so I tried based on the documentation discussing the winbuild folder and directly running the nmake /f Makefile.vc... and STILL get unresolved externals. This SHOULD NOT be this difficult on such a widely…
DRapp
  • 47,638
  • 12
  • 72
  • 142
1
vote
1 answer

libcurl on Windows CE - curl_easy_perform(...) doesn't return

As part of a project, I need to implement libcurl on a Custom WindowsCE device that then talks to a server over wired LAN and GETs, POSTs and DELETEs data ( The programming language I am using is C). This is as far as I've progressed: I found a…
ash
  • 11
  • 4
1
vote
0 answers

Uploading file (non direct) using POST libcurl

Hi want to upload one single input.zip file as well as this xml descrition of file to the server.This is xml description part that I want to send in CURLOPT_POSTFIELDS, "true"
1
vote
1 answer

build libcurl without soname

I'm trying to build libcurl with ndk r7 in ubuntu and get libcurl.so.5.3.0, its soname is libcurl.so.5. And I also have a libxxx.so which uses libcurl.so. When I use System.loadLibrary("curl"); and System.loadLibrary("xxx"); in android app, I got…
ncubrian
  • 421
  • 1
  • 3
  • 14
1
vote
1 answer

how do I solve version conflict that occurs due to multiple version of library inclusion in Linux

In my project, I am trying to use two libraries those are already compiled and generated. Let us say liba.so(our own library created sometime back) and libssl.so.10.(It is available in the Linux). Now liba.so is having dependency libcurl.so.3…
Jegan
  • 188
  • 3
  • 15
1
vote
1 answer

Pycurl redirect option ignored and assertion failed trying to read video from the web?

I am trying to write a program that reads a webpage looking for file links, which it then attempts to download using curl/libcurl/pycurl. I have everything up to the pycurl correctly working, and when I use a curl command in the terminal, I can get…
WilBur
  • 270
  • 4
  • 9
1
vote
1 answer

cURL dealing with large JSON-response

I'm using the cURL-library with C++ to retrieve a very large JSON-string from this url: https://www.bitstamp.net/api/order_book/?group=1 (it is approx. 170 000 characters long) My problem is that cURL doesn't pass the whole string to my callback…
Grisu47
  • 530
  • 5
  • 16