Test on simpler pages

This commit is contained in:
Andy Cedilnik 2003-01-12 11:01:09 -05:00
parent b229c44dc3
commit 6f0266407b

View File

@ -43,22 +43,22 @@ int GetWebFile(void)
curl_easy_setopt(curl, CURLOPT_HEADER, 1); curl_easy_setopt(curl, CURLOPT_HEADER, 1);
/* get the first document */ /* 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); res = curl_easy_perform(curl);
if ( res != 0 ) 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; retVal = 1;
} }
/* get another document from the same server using the same /* get another document from the same server using the same
connection */ 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); res = curl_easy_perform(curl);
if ( res != 0 ) 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; retVal = 1;
} }