File: lib500.c

package info (click to toggle)
curl 7.15.5-1etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 9,400 kB
  • ctags: 5,904
  • sloc: ansic: 47,247; sh: 9,209; perl: 3,486; makefile: 630; cpp: 178; awk: 40; lisp: 33
file content (13 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "test.h"

int test(char *URL)
{
  CURLcode res;
  CURL *curl = curl_easy_init();
  curl_easy_setopt(curl, CURLOPT_URL, URL);
  curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
  res = curl_easy_perform(curl);
  curl_easy_cleanup(curl);  
  return (int)res;
}