~ubuntu-branches/ubuntu/intrepid/curl/intrepid-security

« back to all changes in this revision

Viewing changes to docs/examples/curlx.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:
438
438
  /* Now specify the POST binary data */
439
439
 
440
440
  curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
441
 
  curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,tabLength);
 
441
  curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
442
442
 
443
443
  /* pass our list of custom made headers */
444
444
 
477
477
  /* Now specify the POST binary data */
478
478
 
479
479
  curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
480
 
  curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,tabLength);
 
480
  curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
481
481
 
482
482
 
483
483
  /* Perform the request, res will get the return code */