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

« back to all changes in this revision

Viewing changes to tests/libtest/lib553.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-26 18:58:51 UTC
  • mfrom: (3.3.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090526185851-t1gun9nboi5kbd9u
Tags: 7.19.5-1ubuntu1
* Merge from Debian unstable (LP: #380281), remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* Fixes LP: #379477

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: lib553.c,v 1.5 2008-10-01 17:34:25 danf Exp $
 
8
 * $Id: lib553.c,v 1.6 2009-05-08 02:14:50 yangtse Exp $
9
9
 *
10
10
 * This test case and code is based on the bug recipe Joe Malicki provided for
11
11
 * bug report #1871269, fixed on Jan 14 2008 before the 7.18.0 release.
70
70
    curl_easy_setopt(curl, CURLOPT_URL, URL);
71
71
    curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
72
72
    curl_easy_setopt(curl, CURLOPT_POST, 1L);
 
73
#ifdef CURL_DOES_CONVERSIONS
 
74
    /* Convert the POST data to ASCII */
 
75
    curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
 
76
#endif
73
77
    curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)POSTLEN);
74
78
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
75
79
    curl_easy_setopt(curl, CURLOPT_HEADER, 1L);