~ubuntu-branches/ubuntu/warty/curl/warty

« back to all changes in this revision

Viewing changes to tests/libtest/lib501.c

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "test.h"
 
2
 
 
3
int test(char *URL)
 
4
{
 
5
  CURLcode res;
 
6
  CURL *curl = curl_easy_init();
 
7
 
 
8
  (void)URL; /* we don't use this */
 
9
  curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
 
10
  res = curl_easy_perform(curl);
 
11
  curl_easy_cleanup(curl);
 
12
  return res;
 
13
}
 
14