printf("open\n");
CURL *curl = curl_easy_init();
if(curl) {
+ printf("curl\n");
CURLcode res;
- curl_easy_setopt(curl, CURLOPT_URL, "https://scanner.lan.hhaalo.de");
+ curl_easy_setopt(curl, CURLOPT_URL, "http://scanner.lan.hhaalo.de/api/session");
+ curl_easy_setopt(curl, CURLOPT_POST, 1L);
+ curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "{\"OCPUserName\":\"hhaalo\"}");
res = curl_easy_perform(curl);
+ printf("curlcode: %li\n", res);
curl_easy_cleanup(curl);
}
return NULL;