Restconf stream debugging and README

This commit is contained in:
Olof hagsand 2018-11-04 15:59:05 +01:00
parent 09e2e767fe
commit fdfbbcdb9e
6 changed files with 60 additions and 30 deletions

View file

@ -75,6 +75,7 @@ APPSRC += clixon_util_xpath.c
APPS = $(APPSRC:.c=)
all: $(APPS)
echo "You may want to make clixon_util_stream separately (curl dependency)"
clean:
rm -f $(APPS) *.core

View file

@ -135,8 +135,8 @@ stream_url_get(char *url,
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
/* HEADERS */
list = curl_slist_append(list, "Accept: text/event-stream");
list = curl_slist_append(list, "Cache-Control: no-cache");
list = curl_slist_append(list, "Connection: keep-alive");
// list = curl_slist_append(list, "Cache-Control: no-cache");
// list = curl_slist_append(list, "Connection: keep-alive");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);
/* specify URL to get */
cprintf(cbf, "%s", url);