~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to docs/examples/ftpget.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  curl = curl_easy_init();
53
53
  if(curl) {
54
54
    /*
55
 
     * Get curl 7.9.2 from sunet.se's FTP site. curl 7.9.2 is most likely not
56
 
     * present there by the time you read this, so you'd better replace the
57
 
     * URL with one that works!
 
55
     * You better replace the URL with one that works!
58
56
     */
59
57
    curl_easy_setopt(curl, CURLOPT_URL,
60
 
                     "ftp://ftp.sunet.se/pub/www/utilities/curl/curl-7.9.2.tar.gz");
 
58
                     "ftp://ftp.example.com/pub/www/utilities/curl/curl-7.9.2.tar.gz");
61
59
    /* Define our callback to get called when there's data to be written */
62
60
    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
63
61
    /* Set a pointer to our struct to pass to the callback */