~vorlon/ubuntu/natty/curl/multiarch

« back to all changes in this revision

Viewing changes to docs/examples/simplepost.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-29 17:26:37 UTC
  • mfrom: (3.4.9 sid)
  • Revision ID: james.westby@ubuntu.com-20101129172637-7wwnlut14uxp2kfx
Tags: 7.21.2-1ubuntu1
* Merge with Debian unstable, remaining Ubuntu changes: (LP: #682286)
* debian/control:
  - (Keep build deps in main)
  - Drop build dependencies: stunnel, libssh2-1-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:
20
20
 
21
21
  curl = curl_easy_init();
22
22
  if(curl) {
23
 
    curl_easy_setopt(curl, CURLOPT_URL, "http://posthere.com");
 
23
    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
24
24
    curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
25
25
 
26
26
    /* if we don't provide POSTFIELDSIZE, libcurl will strlen() by