~ubuntu-branches/ubuntu/maverick/curl/maverick

« back to all changes in this revision

Viewing changes to docs/examples/multi-post.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-18 15:21:57 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20080618152157-j8b12047aqcl6kii
Tags: upstream-7.18.2
ImportĀ upstreamĀ versionĀ 7.18.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: multi-post.c,v 1.5 2007-07-12 21:11:10 danf Exp $
 
8
 * $Id: multi-post.c,v 1.6 2008-05-22 21:20:09 danf Exp $
9
9
 *
10
10
 * This is an example application source code using the multi interface
11
11
 * to do a multipart formpost without "blocking".
61
61
    /* what URL that receives this POST */
62
62
    curl_easy_setopt(curl, CURLOPT_URL,
63
63
                     "http://www.fillinyoururl.com/upload.cgi");
64
 
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
 
64
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
65
65
 
66
66
    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
67
67
    curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);