url2file: new simple example

Just showing how to download the contents of a given URL into a local
file.

Based on a suggestion and example code by Georg Potthast
This commit is contained in:
Daniel Stenberg 2012-01-16 14:45:00 +01:00
parent e3e24e5b36
commit 21401840fa
3 changed files with 83 additions and 1 deletions

View file

@ -5,7 +5,7 @@ check_PROGRAMS = 10-at-a-time anyauthput cookie_interface debug fileupload \
persistant post-callback postit2 sepheaders simple simplepost simplessl \
sendrecv httpcustomheader certinfo chkspeed ftpgetinfo ftp-wildcard \
smtp-multi simplesmtp smtp-tls rtsp externalsocket resolve \
progressfunc pop3s pop3slist imap
progressfunc pop3s pop3slist imap url2file
# These examples require external dependencies that may not be commonly
# available on POSIX systems, so don't bother attempting to compile them here.