~ubuntu-branches/ubuntu/jaunty/curl/jaunty

« back to all changes in this revision

Viewing changes to tests/libtest/lib506.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: lib506.c,v 1.16 2007-09-27 01:45:23 danf Exp $
 
8
 * $Id: lib506.c,v 1.18 2008-05-22 21:49:52 danf Exp $
9
9
 */
10
10
 
11
11
#include "test.h"
106
106
  }
107
107
 
108
108
  headers = sethost(NULL);
109
 
  curl_easy_setopt(curl, CURLOPT_VERBOSE,    1);
110
 
  curl_easy_setopt(curl, CURLOPT_HTTPHEADER, (void*)headers);
111
 
  curl_easy_setopt(curl, CURLOPT_URL,        (void*)tdata->url);
 
109
  curl_easy_setopt(curl, CURLOPT_VERBOSE,    1L);
 
110
  curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
 
111
  curl_easy_setopt(curl, CURLOPT_URL,        tdata->url);
112
112
  printf( "CURLOPT_SHARE\n" );
113
 
  curl_easy_setopt(curl, CURLOPT_SHARE, (void*)tdata->share);
 
113
  curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
114
114
 
115
115
  printf( "PERFORM\n" );
116
116
  code = curl_easy_perform(curl);
222
222
 
223
223
  url = suburl( URL, i );
224
224
  headers = sethost( NULL );
225
 
  curl_easy_setopt( curl, CURLOPT_HTTPHEADER, (void*)headers );
 
225
  curl_easy_setopt( curl, CURLOPT_HTTPHEADER, headers );
226
226
  curl_easy_setopt( curl, CURLOPT_URL,        url );
227
227
  printf( "CURLOPT_SHARE\n" );
228
228
  curl_easy_setopt( curl, CURLOPT_SHARE,      share );