~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to docs/examples/simplepost.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-18 15:21:57 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20080618152157-qq94aiequcq35w6b
Tags: 7.18.2-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop the stunnel build dependency.
  - Drop the build-dependency on libdb4.5-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: simplepost.c,v 1.3 2007-07-12 21:11:10 danf Exp $
 
8
 * $Id: simplepost.c,v 1.4 2008-05-22 21:20:09 danf Exp $
9
9
 */
10
10
 
11
11
#include <stdio.h>
26
26
 
27
27
    /* if we don't provide POSTFIELDSIZE, libcurl will strlen() by
28
28
       itself */
29
 
    curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(postthis));
 
29
    curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
30
30
 
31
31
    res = curl_easy_perform(curl);
32
32