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

« back to all changes in this revision

Viewing changes to docs/examples/persistant.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:
24
24
    curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
25
25
 
26
26
    /* get the first document */
27
 
    curl_easy_setopt(curl, CURLOPT_URL, "http://curl.haxx.se/");
 
27
    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
28
28
    res = curl_easy_perform(curl);
29
29
 
30
30
    /* get another document from the same server using the same
31
31
       connection */
32
 
    curl_easy_setopt(curl, CURLOPT_URL, "http://curl.haxx.se/docs/");
 
32
    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
33
33
    res = curl_easy_perform(curl);
34
34
 
35
35
    /* always cleanup */