Commit 7bb54435 authored by Ian Roddis's avatar Ian Roddis

Checkpointing work

parent 080bb6ff
...@@ -86,14 +86,12 @@ TEST(stream, from_description) ...@@ -86,14 +86,12 @@ TEST(stream, from_description)
return size * nmemb; return size * nmemb;
}; };
std::string url = "http://localhost:" + std::to_string(PORT) + "/"; std::string url = "http://localhost:" + std::to_string(PORT) + "/";
std::cout << url <<std::endl;
CURLcode res; CURLcode res;
CURL * curl = curl_easy_init(); CURL * curl = curl_easy_init();
if (curl) if (curl)
{ {
curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, static_cast<CURL_WRITEFUNCTION_PTR>(curl_callback)); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, static_cast<CURL_WRITEFUNCTION_PTR>(curl_callback));
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ss); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ss);
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment