~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to tests/libtest/lib524.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20060629150424-be178abcwks1n519
Tags: upstream-7.15.4
ImportĀ upstreamĀ versionĀ 7.15.4

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
  curl_easy_setopt(curl, CURLOPT_URL, URL);
 
8
  curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
 
9
  curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
 
10
 
 
11
  res = curl_easy_perform(curl);
 
12
  curl_easy_cleanup(curl);
 
13
  return (int)res;
 
14
}
 
15