summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
5a191a7)
Issue-ID: SIM-41
Signed-off-by: Konstantinos Papastergiou <konstantinos.papastergiou@telekom.de>
Signed-off-by: Konstantinos Papastergiou <Konstantinos.Papastergiou@telekom.de>
Change-Id: I78e88ed4c998ed539cfd6e47e2c8febce20f80e4
free(ves_auth_method);
char url[300];
free(ves_auth_method);
char url[300];
- sprintf(url, "https://%s:%d/eventListener/v7", ves_ip, ves_port);
+ char ves_protocol[15] = "https";
+ if( !strcmp(getenv("VES_HTTPS"), "false") )
+ {
+ strcpy(ves_protocol ,"http" );
+ printf("VES connection protocol %s enabled\n", ves_protocol);
+ }
+
+ sprintf(url, "%s://%s:%d/eventListener/v7", ves_protocol, ves_ip, ves_port);
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);