Test on simpler pages
This commit is contained in:
parent
b229c44dc3
commit
6f0266407b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue