Sign in
fuchsia
/
third_party
/
curl
/
67ad29e7167289c99bac92911e1f97034e15027d
/
.
/
tests
/
libtest
/
lib500.c
blob: 5943b584993b2d3b8537e370261b81bc94682ca7 [
file
] [
log
] [
blame
]
#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
;
}