Loading docs/examples/cacertinmem.c +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ int main(void) rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr); rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM"); rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L); rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.cacert.org/"); rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/"); /* first try: retrieve page without cacerts' certificate -> will fail */ Loading docs/examples/certinfo.c +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ int main(int argc, char **argv) curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://www.networking4all.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu); Loading docs/examples/cookie_interface.c +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ main(void) if (curl) { char nline[256]; curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.com/"); /* google.com sets "PREF" cookie */ curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/"); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* just to start the cookie engine */ res = curl_easy_perform(curl); Loading docs/examples/debug.c +1 −1 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ int main(void) /* the DEBUGFUNCTION has no effect until we enable VERBOSE */ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); res = curl_easy_perform(curl); /* always cleanup */ Loading docs/examples/ftp-wildcard.c +1 −2 Original line number Diff line number Diff line Loading @@ -67,8 +67,7 @@ int main(int argc, char **argv) if(argc == 2) curl_easy_setopt(handle, CURLOPT_URL, argv[1]); else curl_easy_setopt(handle, CURLOPT_URL, "ftp://curltest.howto.cz:123456@curltest.howto.cz/test/*"); curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*"); /* and start transfer! */ rc = curl_easy_perform(handle); Loading Loading
docs/examples/cacertinmem.c +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ int main(void) rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr); rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM"); rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L); rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.cacert.org/"); rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/"); /* first try: retrieve page without cacerts' certificate -> will fail */ Loading
docs/examples/certinfo.c +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ int main(int argc, char **argv) curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://www.networking4all.com/"); curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu); Loading
docs/examples/cookie_interface.c +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ main(void) if (curl) { char nline[256]; curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.com/"); /* google.com sets "PREF" cookie */ curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/"); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* just to start the cookie engine */ res = curl_easy_perform(curl); Loading
docs/examples/debug.c +1 −1 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ int main(void) /* the DEBUGFUNCTION has no effect until we enable VERBOSE */ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); res = curl_easy_perform(curl); /* always cleanup */ Loading
docs/examples/ftp-wildcard.c +1 −2 Original line number Diff line number Diff line Loading @@ -67,8 +67,7 @@ int main(int argc, char **argv) if(argc == 2) curl_easy_setopt(handle, CURLOPT_URL, argv[1]); else curl_easy_setopt(handle, CURLOPT_URL, "ftp://curltest.howto.cz:123456@curltest.howto.cz/test/*"); curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/*"); /* and start transfer! */ rc = curl_easy_perform(handle); Loading