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

CURL finish executing and timeout

I'm performing a server request with curl in C++ which return responses in pieces and those pieces's size may also vary. At the time of arrival of each piece, the callback function is being called. The problem is I can't detect when the connection…
Thanh-Nhon Nguyen
  • 3,402
  • 3
  • 28
  • 41
1
vote
2 answers

How to download all images from web page in C?

I have a really difficult problem for me... I hope that for more experienced programmers in C it's not a problem. I have to create a program (in as easy way as possible) which download all images from some web page. This program must be in C (not…
Virgin
  • 33
  • 1
  • 5
1
vote
1 answer

lib curl returns error: 51 after upgrading curl version

I compiled curl 7.37.0 with openssl 1.0.0 and configured them as the following: openssl conf: ./Configure COMPILER_TYPE --prefix=/path/to/dir --openssldir=/path/to/dir shared threads curl conf: ./configure --with-ssl=/path/to/openssl…
15412s
  • 3,298
  • 5
  • 28
  • 38
1
vote
1 answer

libcurl RTSP client implementation c programming issue

I'm implementing a RTSP client in c programming using libcurl. In order to properly configure the RTP/RTCP sessions I require having the transmission port of the RTSP server (to send RTCP RR to it). I've been looking on the documentation but without…
1
vote
0 answers

WinHttp verify peer and server and ssl callback

I need some alternative to following libcurl functions in WinHttp. curl_easy_setopt(cURLHandle, CURLOPT_SSL_VERIFYPEER, vP); curl_easy_setopt(cURLHandle, CURLOPT_SSL_VERIFYHOST, vH); and curl_easy_setopt(cURLHandle, CURLOPT_SSL_CTX_FUNCTION,…
kushpf
  • 1,078
  • 10
  • 22
1
vote
1 answer

libcurl url for amazon s3 part upload

I am trying learn the ropes of libcurl and s3, to PUT(single) a file into s3 the libcurl request I make is like CURLOPT_URL: http://my_bucket.s3.amazonaws.com/my_file.ppi CURLOPT_HTTPHEADER(s): PUT /my_file.ppi HTTP/1.1 Host:…
user3592909
  • 23
  • 1
  • 3
1
vote
1 answer

How can I enable https for cURL request to api.github?

I want to search for github repositories (github API v3) by curl request with https at git bash (v1.9.2 on Windows). My test request looks like this: $ curl -H 'Accept: application/vnd.github.v3.text-match+json' \…
Ronny Springer
  • 199
  • 1
  • 5
  • 16
1
vote
0 answers

Trouble linking/compiling Libcurl in Eclipse IDE C++ Project

Hi I am having trouble configuring an Eclipse C++ (32bit) project to use libcurl. I am using MinGW. I am on a 64bit windows OS. I have done the following so far: Add "libcurl.lib" to the project's Libraries Add the path of libcurl.lib to the…
code
  • 5,294
  • 16
  • 62
  • 113
1
vote
1 answer

How to retrieve the destination IP address from libcurl

I m using libcurl as a http client in my application. I communicate to the HTTP serve with its url with the following libcurl function: curl_easy_setopt(curl, CURLOPT_URL, url); I want to know the IP address of the server url after sending the…
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
1
vote
0 answers

curl_easy_perform() remains idle for long before initiating connection

I am using the libcurl4-openssl-dev library on my ubuntu 12.04 LTS box hosted as a virtual machine. I am making a simple POST request to a particular URL, and observed that it is far too slow compared to WinInet. After analysing the scenario with…
user1872325
  • 71
  • 1
  • 9
1
vote
1 answer

libcurl: POST-request with custom data

since the libcurl examples did not help me very much I ask it here: How can I send a POST-request to a server using libcurl, without sending some form data but some other text that does not come from an web form. Next when this happened…
Elmi
  • 5,899
  • 15
  • 72
  • 143
1
vote
3 answers

Initiating Multipart upload to amazon s3 expecting x-amz-content-sha256 header

I am experimenting with libcurl for a multipart upload to s3. My initiate multipart request looks like this POST /my_new_file.mbi?uploads HTTP/1.1 Accept: / Host: test_bucket.s3.amazonaws.com Date: Thu, 01 May 2014 13:35:17 GMT …
user3592909
  • 23
  • 1
  • 3
1
vote
1 answer

how to get only string name with http request

I am writing code for http request to get string message. i somehow successful in it. here is my code for http request via curl. #include "stdafx.h" #include #include "curl/curl.h" int main(void) { CURL *curl; CURLcode res; /* In…
user3505712
  • 895
  • 1
  • 11
  • 20
1
vote
1 answer

Trouble with Curl and pragma

I'm using std.net.curl, so I have to link against libcurl. Adding -L-lcurl works. However, when I'm adding pragma(lib,"curl"); at the top of the file importing std.net.curl, all sorts of linking errors (missing references) show up. Why is that? Am I…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
1
vote
2 answers

How (i.e. what tool to use) to monitior headers sent by Curl (Cookie problem)

I am using Curl (libcurl) in a C++ aplication, and am unable to send cookies (I think). I have Fiddler, TamperData and LiveHTTP Headers installed, but they are only useful for viewing browser traffic, and are (it would seem) unable of monitoring…
Stick it to THE MAN
  • 5,621
  • 17
  • 77
  • 93