Commit 6f026640 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Test on simpler pages

parent b229c44d
......@@ -43,22 +43,22 @@ int GetWebFile(void)
curl_easy_setopt(curl, CURLOPT_HEADER, 1);
/* get the first document */
curl_easy_setopt(curl, CURLOPT_URL, "http://www.cmake.org/HTML/Sponsors.html");
curl_easy_setopt(curl, CURLOPT_URL, "http://www.cmake.org/page1.html");
res = curl_easy_perform(curl);
if ( res != 0 )
{
printf("Error fetching: http://www.cmake.org/HTML/Sponsors.html\n");
printf("Error fetching: http://www.cmake.org/page1.html\n");
retVal = 1;
}
/* get another document from the same server using the same
connection */
curl_easy_setopt(curl, CURLOPT_URL, "http://www.cmake.org/HTML/Index.html");
curl_easy_setopt(curl, CURLOPT_URL, "http://www.cmake.org/page2.html");
res = curl_easy_perform(curl);
if ( res != 0 )
{
printf("Error fetching: http://www.cmake.org/HTML/Index.html\n");
printf("Error fetching: http://www.cmake.org/page2.html\n");
retVal = 1;
}
......
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