| |
|
|
|
cURL libcurl API Example Source Codes
libcurl - small example snippetsAll Examples10-at-a-time.canyauthput.c cacertinmem.c certinfo.c chkspeed.c cookie_interface.c curlgtk.c curlx.c debug.c evhiperfifo.c externalsocket.c fileupload.c fopen.c ftp-wildcard.c ftpget.c ftpgetinfo.c ftpgetresp.c ftpupload.c ftpuploadresume.c getinfo.c getinmemory.c ghiper.c hiperfifo.c htmltidy.c http-post.c httpcustomheader.c httpput.c https.c imap.c multi-app.c multi-debugcallback.c multi-double.c multi-post.c multi-single.c multithread.c opensslthreadlock.c persistant.c pop3s.c pop3slist.c post-callback.c postit2.c progressfunc.c resolve.c rtsp.c sampleconv.c sendrecv.c sepheaders.c simple.c simplepost.c simplesmtp.c simplessl.c smooth-gtk-thread.c smtp-multi.c smtp-tls.c synctime.c threaded-ssl.c url2file.c We're gathering libcurl example source codes here. Please submit yours! NOTE: These files are intended as examples only. In the interest of simplicity and clarity, they might not include proper error handling and might produce compiler warnings on some platforms. Real-world applications should pay more attention to these issues. allexamples.zip contains all the example sources, roughly 100K compressed. You can also see a list of all libcurl easy options and which example source codes that use them. Some of the Examples
simple HTTP
simple HTTPS
get HTTP with headers separate
simple FTP
FTP upload
get a remote file in memory only
HTTP PUT
HTTP form POST
persistant transfers
multithreaded URL fetches
URL fetch with GTK progress bar
fopen() URL
nonblocking multipart formpost
debug callback
HTML parsing
Using CURLOPT_SSL_CTX_FUNCTION
Doing SOAP with libcurl You'll also find these examples in the distribution archive, in the docs/examples directory. |
Page updated January 16, 2012.
web site info