Commit 7b4e2e4f authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

work in progress

parent 6d14c569
......@@ -328,7 +328,10 @@ void NetworkedQuadTreeImageIO::GetFromNet(std::ostringstream& quad)
itkExceptionMacro(<<"NetworkedQuadTree read : bad file name.");
std::ostringstream browserStream;
browserStream << "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv: Gecko/20071127 Firefox/";
CURL *curl;
CURLcode res;
curl = curl_easy_init();
......@@ -336,11 +339,15 @@ void NetworkedQuadTreeImageIO::GetFromNet(std::ostringstream& quad)
std::cout << urlStream.str().data() << std::endl;
char url[80];
char url[200];
char browser[200];
//Download the file
if(curl) {
curl_easy_setopt(curl, CURLOPT_USERAGENT, browser);
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, output_file);
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