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
22
votes
3 answers

error: longjmp causes uninitialized stack frame

I have a server application that creates a Bus on the dbus and after some minutes of running I got an error that I have never seen before. Did you have an idea whats wrong? *** longjmp causes uninitialized stack frame ***:…
Tobi Weißhaar
  • 1,617
  • 6
  • 26
  • 35
22
votes
6 answers

PHP - curl_exec hangs

I am having a strange problem with the below php function. Unfortunately this is one of those special "Production only" case. function requestPost($url, $data) { set_time_limit(60); $output = array(); $curlSession =…
Ricko M
  • 1,784
  • 5
  • 24
  • 44
21
votes
8 answers

Curl request is failing on the SSL?

I have this code if(ereg("^(https)",$url)) curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false); // execute, and log the result to curl_put.log $result = curl_exec($curl); $error = curl_error($curl); The error specified is SSL…
Matt Elhotiby
  • 43,028
  • 85
  • 218
  • 321
21
votes
5 answers

Posting an array with curl_setopt

The attached code is returning "Notice: Array to string conversion in...". Simply my array is being handled to the remote server as a string containing "Array" word. the rest of the variables are fine. How can I pass my array $anarray without this…
Essam
  • 351
  • 1
  • 4
  • 8
21
votes
3 answers

How do I enable https support in libcurl?

When I try to $ brew update I'm getting the error: error: Protocol https not supported or disabled in libcurl while accessing https://github.com/mxcl/homebrew/info/refs?service=git-upload-pack However, when I $ curl --version, I see: curl 7.21.4…
Ben Harold
  • 6,242
  • 6
  • 47
  • 71
21
votes
1 answer

How do I specify LDFLAGS and CPPFLAGS for ./configure?

I am using a Mac running OS X 10.8.3. I am trying to compile cgminer 3.0.0. On my first run of ./configure I got the message: checking for LIBCURL... no checking for LIBCURL... no configure: error: Missing required libcurl dev >= 7.18.2 So I…
Ben Harold
  • 6,242
  • 6
  • 47
  • 71
20
votes
3 answers

Protocol https not supported or disabled in libcurl

I am using Authorize.net in my application(its in OSCOMMERCE) , When the user making payment its returning empty response. I debugged and find that it returning this error: Protocol https not supported or disabled in libcurl I am sending a prober…
AnNaMaLaI
  • 4,064
  • 11
  • 53
  • 93
20
votes
1 answer

Send empty HTTP header with libcurl

I want to add an empty header in my HTTP packet. Something like: Someheader: But I see that libcurl does not support that. They propose a workaround by concatenating the empty header with another header: "Someheader:\r\nheader1: value" Does the…
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
20
votes
2 answers

Is there any way to change the SONAME of a binary directly?

My program depends on libcurl.so.3, but in RHEL6 there is no symbolic link libcurl.so.3 ⇾ libcurl.so.4 (my program can run smoothly when I create this link). However, there is symbolic link libcurl.so ⇾ libcurl.so.4. I would like to modify the…
user2721786
  • 234
  • 1
  • 2
  • 7
19
votes
4 answers

How do I POST a buffer of JSON using libcurl?

My C++ program currently invokes curl through a pipe (popen("curl ...")) to POST a file of JSON data to a web server. This has obvious performance limitations due to the need to save the JSON to a file and invoke curl in a subshell. I'd like to…
Randall Cook
  • 6,728
  • 6
  • 33
  • 68
19
votes
2 answers

Meaning of libcurl messages and execution process

I am using libcurl library to fetch abc-1.tar file from server. I want to know meaning of message which is display and process of execution of libcurl to display this messages. For Example: I provide some messages below out of that I know basic…
harshal bhavsar
  • 241
  • 1
  • 4
  • 13
18
votes
4 answers

cURL does not work but same site works with browser

what are the reasons for when using cURL form linux server to access the site return an error. but opening this site in chrome succeeds.
john
  • 189
  • 1
  • 1
  • 4
17
votes
3 answers

cURL retry in PHP

Is it possible to set the option to retry on timeouts in PHP cURL? I know I can do this by coding it to retry on failure, just wondering if there's some way to do it through an option.
Ben G
  • 26,091
  • 34
  • 103
  • 170
17
votes
3 answers

Is there a definitive path for known hosts in Windows?

I'm working with libcurl as SFTP and its great. I want to check for the host am about to connect if it exists in the hosts file. In Linux I can easily find known hosts file as it is almost always in ~/.ssh/known_hosts. I wanted to know if Windows…
Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93
17
votes
1 answer

Security consequences of disabling CURLOPT_SSL_VERIFYHOST (libcurl/openssl)

What are the security consequences of Enabling CURLOPT_SSL_VERIFYPEER and Disabling CURLOPT_SSL_VERIFYHOST?
user1782427
  • 770
  • 1
  • 8
  • 19