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

« back to all changes in this revision

Viewing changes to tests/libtest/lib555.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: lib555.c,v 1.4 2008-09-20 04:26:57 yangtse Exp $
 
8
 * $Id: lib555.c,v 1.5 2009-05-08 02:14:50 yangtse Exp $
9
9
 *
10
10
 * This test case is supposed to be identical to 547 except that this uses the
11
11
 * multi interface and 547 is easy interface.
93
93
  curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS));
94
94
 
95
95
  curl_easy_setopt(curl, CURLOPT_POST, 1L);
 
96
#ifdef CURL_DOES_CONVERSIONS
 
97
  /* Convert the POST data to ASCII. */
 
98
  curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
 
99
#endif
96
100
  curl_easy_setopt(curl, CURLOPT_PROXY, libtest_arg2);
97
101
  curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, libtest_arg3);
98
102
  curl_easy_setopt(curl, CURLOPT_PROXYAUTH,
124
128
      mp_timedout = TRUE;
125
129
      break;
126
130
    }
 
131
#ifdef TPF
 
132
    sleep(1); /* avoid ctl-10 dump */
 
133
#endif
127
134
    if (running <= 0) {
128
135
      fprintf(stderr, "nothing left running.\n");
129
136
      break;