]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
man pages: switch to https://example.com URLs
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Sep 2020 21:04:07 +0000 (23:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Sep 2020 14:28:18 +0000 (16:28 +0200)
Since HTTPS is "the new normal", this update changes a lot of man page
examples to use https://example.com instead of the previous "http://..."

Closes #5969

125 files changed:
docs/libcurl/curl_easy_cleanup.3
docs/libcurl/curl_easy_init.3
docs/libcurl/curl_easy_perform.3
docs/libcurl/curl_easy_setopt.3
docs/libcurl/curl_mime_init.3
docs/libcurl/libcurl-env.3
docs/libcurl/libcurl-security.3
docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD_T.3
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD_T.3
docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
docs/libcurl/opts/CURLINFO_COOKIELIST.3
docs/libcurl/opts/CURLINFO_EFFECTIVE_METHOD.3
docs/libcurl/opts/CURLINFO_EFFECTIVE_URL.3
docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
docs/libcurl/opts/CURLINFO_HTTP_VERSION.3
docs/libcurl/opts/CURLINFO_LASTSOCKET.3
docs/libcurl/opts/CURLINFO_LOCAL_IP.3
docs/libcurl/opts/CURLINFO_LOCAL_PORT.3
docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
docs/libcurl/opts/CURLINFO_OS_ERRNO.3
docs/libcurl/opts/CURLINFO_PRIMARY_IP.3
docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
docs/libcurl/opts/CURLINFO_PRIVATE.3
docs/libcurl/opts/CURLINFO_PROTOCOL.3
docs/libcurl/opts/CURLINFO_PROXYAUTH_AVAIL.3
docs/libcurl/opts/CURLINFO_REDIRECT_COUNT.3
docs/libcurl/opts/CURLINFO_REDIRECT_URL.3
docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3
docs/libcurl/opts/CURLINFO_RESPONSE_CODE.3
docs/libcurl/opts/CURLINFO_RETRY_AFTER.3
docs/libcurl/opts/CURLINFO_SCHEME.3
docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD_T.3
docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3
docs/libcurl/opts/CURLINFO_SIZE_UPLOAD_T.3
docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD_T.3
docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3
docs/libcurl/opts/CURLINFO_SPEED_UPLOAD_T.3
docs/libcurl/opts/CURLOPT_ACCEPT_ENCODING.3
docs/libcurl/opts/CURLOPT_AUTOREFERER.3
docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT.3
docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT_MS.3
docs/libcurl/opts/CURLOPT_CONNECT_TO.3
docs/libcurl/opts/CURLOPT_COOKIE.3
docs/libcurl/opts/CURLOPT_COOKIEFILE.3
docs/libcurl/opts/CURLOPT_COOKIEJAR.3
docs/libcurl/opts/CURLOPT_COOKIESESSION.3
docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.3
docs/libcurl/opts/CURLOPT_CURLU.3
docs/libcurl/opts/CURLOPT_CUSTOMREQUEST.3
docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
docs/libcurl/opts/CURLOPT_DISALLOW_USERNAME_IN_URL.3
docs/libcurl/opts/CURLOPT_DNS_CACHE_TIMEOUT.3
docs/libcurl/opts/CURLOPT_DNS_INTERFACE.3
docs/libcurl/opts/CURLOPT_DNS_LOCAL_IP4.3
docs/libcurl/opts/CURLOPT_DNS_LOCAL_IP6.3
docs/libcurl/opts/CURLOPT_DNS_SERVERS.3
docs/libcurl/opts/CURLOPT_DOH_URL.3
docs/libcurl/opts/CURLOPT_ERRORBUFFER.3
docs/libcurl/opts/CURLOPT_EXPECT_100_TIMEOUT_MS.3
docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.3
docs/libcurl/opts/CURLOPT_HEADER.3
docs/libcurl/opts/CURLOPT_HEADERDATA.3
docs/libcurl/opts/CURLOPT_HEADERFUNCTION.3
docs/libcurl/opts/CURLOPT_HTTP200ALIASES.3
docs/libcurl/opts/CURLOPT_HTTPGET.3
docs/libcurl/opts/CURLOPT_HTTPHEADER.3
docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.3
docs/libcurl/opts/CURLOPT_INTERFACE.3
docs/libcurl/opts/CURLOPT_IPRESOLVE.3
docs/libcurl/opts/CURLOPT_KEYPASSWD.3
docs/libcurl/opts/CURLOPT_LOCALPORT.3
docs/libcurl/opts/CURLOPT_LOCALPORTRANGE.3
docs/libcurl/opts/CURLOPT_MAXAGE_CONN.3
docs/libcurl/opts/CURLOPT_MAXREDIRS.3
docs/libcurl/opts/CURLOPT_NOPROGRESS.3
docs/libcurl/opts/CURLOPT_PASSWORD.3
docs/libcurl/opts/CURLOPT_PATH_AS_IS.3
docs/libcurl/opts/CURLOPT_PORT.3
docs/libcurl/opts/CURLOPT_POST.3
docs/libcurl/opts/CURLOPT_POSTFIELDS.3
docs/libcurl/opts/CURLOPT_POSTFIELDSIZE.3
docs/libcurl/opts/CURLOPT_POSTFIELDSIZE_LARGE.3
docs/libcurl/opts/CURLOPT_POSTREDIR.3
docs/libcurl/opts/CURLOPT_PRE_PROXY.3
docs/libcurl/opts/CURLOPT_PRIVATE.3
docs/libcurl/opts/CURLOPT_PROXY.3
docs/libcurl/opts/CURLOPT_PROXYPASSWORD.3
docs/libcurl/opts/CURLOPT_PROXYPORT.3
docs/libcurl/opts/CURLOPT_PROXYUSERNAME.3
docs/libcurl/opts/CURLOPT_PROXYUSERPWD.3
docs/libcurl/opts/CURLOPT_PROXY_KEYPASSWD.3
docs/libcurl/opts/CURLOPT_RANGE.3
docs/libcurl/opts/CURLOPT_READDATA.3
docs/libcurl/opts/CURLOPT_REFERER.3
docs/libcurl/opts/CURLOPT_REQUEST_TARGET.3
docs/libcurl/opts/CURLOPT_RESOLVE.3
docs/libcurl/opts/CURLOPT_RESOLVER_START_DATA.3
docs/libcurl/opts/CURLOPT_RESOLVER_START_FUNCTION.3
docs/libcurl/opts/CURLOPT_SOCKOPTDATA.3
docs/libcurl/opts/CURLOPT_STDERR.3
docs/libcurl/opts/CURLOPT_TCP_FASTOPEN.3
docs/libcurl/opts/CURLOPT_TCP_KEEPALIVE.3
docs/libcurl/opts/CURLOPT_TCP_KEEPIDLE.3
docs/libcurl/opts/CURLOPT_TCP_KEEPINTVL.3
docs/libcurl/opts/CURLOPT_TCP_NODELAY.3
docs/libcurl/opts/CURLOPT_TIMECONDITION.3
docs/libcurl/opts/CURLOPT_TIMEOUT.3
docs/libcurl/opts/CURLOPT_TIMEOUT_MS.3
docs/libcurl/opts/CURLOPT_TIMEVALUE.3
docs/libcurl/opts/CURLOPT_TIMEVALUE_LARGE.3
docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3
docs/libcurl/opts/CURLOPT_TRANSFER_ENCODING.3
docs/libcurl/opts/CURLOPT_UNRESTRICTED_AUTH.3
docs/libcurl/opts/CURLOPT_URL.3
docs/libcurl/opts/CURLOPT_USERAGENT.3
docs/libcurl/opts/CURLOPT_USERNAME.3
docs/libcurl/opts/CURLOPT_USERPWD.3
docs/libcurl/opts/CURLOPT_VERBOSE.3

index 626d98c5175cba550aafbef1ea72537c7bc86850..73017fa3d3d0f34db8536647fb1150af5a2a3bef 100644 (file)
@@ -5,7 +5,7 @@
 .\" *                            | (__| |_| |  _ <| |___
 .\" *                             \___|\___/|_| \_\_____|
 .\" *
-.\" * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
 .\" *
 .\" * This software is licensed as described in the file COPYING, which
 .\" * you should have received as part of this distribution. The terms
@@ -60,7 +60,7 @@ None
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
 }
index 2d9925277fe38b96f0ef73de1a1e3bcd78f29043..a7e181f3c60b2e97056da23d76888ccdc8c9a838 100644 (file)
@@ -49,7 +49,7 @@ other curl functions.
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
 }
index 8417f4645821365edaa06bfc2f6fc23757b68d0e..5d9d80fe73168826822f4a28ef5b59d6f0e5ce63 100644 (file)
@@ -63,7 +63,7 @@ the error buffer when non-zero is returned.
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
 }
index 7f60166145830352f22f7181d35c2eba191a2b71..666e65d9809286c0806c635daf254fcb69bf52c9 100644 (file)
@@ -655,7 +655,7 @@ the option was disabled at compile-time, it will return
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
 }
index 469f02b7c53bd7b0fdbacfdfcd30f2ce28b872d6..938ce1bce9999c7c11dbfbfb6d6bb5b0568a88ef 100644 (file)
@@ -5,7 +5,7 @@
 .\" *                            | (__| |_| |  _ <| |___
 .\" *                             \___|\___/|_| \_\_____|
 .\" *
-.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
 .\" *
 .\" * This software is licensed as described in the file COPYING, which
 .\" * you should have received as part of this distribution. The terms
@@ -56,7 +56,7 @@ A mime struct handle, or NULL upon failure.
 
  /* Post and send it. */
  curl_easy_setopt(easy, CURLOPT_MIMEPOST, mime);
- curl_easy_setopt(easy, CURLOPT_URL, "http://example.com");
+ curl_easy_setopt(easy, CURLOPT_URL, "https://example.com");
  curl_easy_perform(easy);
 
  /* Clean-up. */
index 3807e662eb6fd5a34d46865a7cca2f0e2db190c6..8035d03ea965267936bf4da860a06cb6a7690f81 100644 (file)
@@ -5,7 +5,7 @@
 .\" *                            | (__| |_| |  _ <| |___
 .\" *                             \___|\___/|_| \_\_____|
 .\" *
-.\" * Copyright (C) 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 2018 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
 .\" *
 .\" * This software is licensed as described in the file COPYING, which
 .\" * you should have received as part of this distribution. The terms
@@ -30,7 +30,7 @@ supports a set of additional environment variables independently of this.
 .IP "[scheme]_proxy"
 When libcurl is given a URL to use in a transfer, it first extracts the
 "scheme" part from the URL and checks if there is a given proxy set for that
-in its corresponding environment variable. A URL like "http://example.com"
+in its corresponding environment variable. A URL like "https://example.com"
 will hence use the "http_proxy" variable, while a URL like "ftp://example.com"
 will use the "ftp_proxy" variable.
 
index f340facd3266faf399d50b11a57b81f61a76058b..75b473599a5d7334b519de08de5e6bb3f589ab05 100644 (file)
@@ -154,7 +154,7 @@ behind a firewall.  Applications can mitigate against this by using the
 \fICURLOPT_FTP_SKIP_PASV_IP(3)\fP option or \fICURLOPT_FTPPORT(3)\fP.
 
 Local servers sometimes assume local access comes from friends and trusted
-users. An application that expects http://example.com/file_to_read that and
+users. An application that expects https://example.com/file_to_read that and
 instead gets http://192.168.0.1/my_router_config might print a file that would
 otherwise be protected by the firewall.
 
index e5d52a79695362f5e83347b0ea4fef8f2b0cfefe..1b7334558af15c7f59170d789fe8f6e4810daf60 100644 (file)
@@ -47,7 +47,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   curl_socket_t sockfd;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Do not do the transfer - only connect to host */
   curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
index 78c28fa027663f865c2a0c98cdfcce65709611c4..d411cdfcc8dcf794d889dca8407dcad96631a7ac 100644 (file)
@@ -41,7 +41,7 @@ HTTP and some
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* January 1, 2020 is 1577833200 */
   curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 1577833200L);
index e5148410f70ee0815b9ca016e2f8955a4aaa819d..e0da707ce46ef333903127bcc1fdd3ca45002785 100644 (file)
@@ -41,7 +41,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index 88007dbda1f0261cb5bcd3bda8d43330f5b65510..a110a9d032b85885edc724027bf26abc7c208a07 100644 (file)
@@ -38,7 +38,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index deaff925b687957688b4a9e37d3c7a5314594bb1..acde2b99f834abcf9132dbda90276e86b2f9cdf3 100644 (file)
@@ -40,7 +40,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the upload */
   res = curl_easy_perform(curl);
index 18b12d8e5c87fc763d45c3ef9d280bc46e1d2ce7..e1d10dd217ab26d8a79c5c85dbcde8bd8f434866 100644 (file)
@@ -37,7 +37,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the upload */
   res = curl_easy_perform(curl);
index 3dce953e6e74a552552bade142a44eb2b994bc5b..394f6fccc588c0d0b39940a7bbd37a040e942d6a 100644 (file)
@@ -42,7 +42,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   res = curl_easy_perform(curl);
 
index dac4d75bb3fe19876d8b05eaf0c5d0a41ee89437..d5d4037597179c7305dd4612e7887e69980139a8 100644 (file)
@@ -43,7 +43,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* enable the cookie engine */
   curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "");
index deee1254691fdfcaaf5cf53f65ff4d23160256b6..937cf67b06622bea1d2fd5598a4cb8cfec87edbe 100644 (file)
@@ -47,7 +47,7 @@ HTTP(S)
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "data");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
   res = curl_easy_perform(curl);
index 97c0c2ab6d8920fe466ebaee356be1b5693c150f..d726590d6a554b391b0afcf5e22c6bb25af94cce 100644 (file)
@@ -43,7 +43,7 @@ HTTP(S)
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
index cc928c72504880c511cb5849c0f13e01d21aa149..0464232fcc2f8693961ca0fe85d9cc9b0b49de48 100644 (file)
@@ -40,7 +40,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     long size;
index 08d66b32ec7f539952b76bb8babc22b095fd15aa..b886ce507a7ade4fe4f54e69d4fbe9b1690a2bda 100644 (file)
@@ -38,7 +38,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   res = curl_easy_perform(curl);
 
index 7e8931812074f43d2b1e5e3472949fb3914ad45b..a69805f832f9fa5ffb40d85cdb917a208e330066 100644 (file)
@@ -39,7 +39,7 @@ HTTP
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     long http_version;
index 693f215d51a7649bede5f9884be027dc5556ede5..e108c9be89687555b6aaaece3e263bcd62c33a7e 100644 (file)
@@ -47,7 +47,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   long sockfd; /* doesn't work on win64! */
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Do not do the transfer - only connect to host */
   curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
index 2b44d9ab19a1ac3392331bc89276103947de1955..9c4827a220102ccf6f32c1497be655066258a746 100644 (file)
@@ -45,7 +45,7 @@ All
 {
   char *ip;
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request, res will get the return code */
   res = curl_easy_perform(curl);
index bf6b6e5338f9b944b5aa3af6569369251602cd19..f364354a12842eb578b28a3cc26de1f018828afa 100644 (file)
@@ -40,7 +40,7 @@ All
 
   curl = curl_easy_init();
   if(curl) {
-    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
+    curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
     res = curl_easy_perform(curl);
 
     if(CURLE_OK == res) {
index e682179aa1354c21cb88d69e688f977b4fc5c1fd..f820a288178c535ae141ca32716fe55633ce90b3 100644 (file)
@@ -41,7 +41,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
index a5f3cd19b0d05d71902d4f338549872c83aa5b95..20453610c42d04f2748d6a19d4e624f4333d5754 100644 (file)
@@ -38,7 +38,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res != CURLE_OK) {
     long error;
index 05256d8ea46783265e4cba6a0fd5a5a2cb4e0b74..3f6bc2070562af1b35ee70a991b4226e4a1ec306 100644 (file)
@@ -44,7 +44,7 @@ All network based ones
 {
   char *ip;
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request, res will get the return code */
   res = curl_easy_perform(curl);
index f86855412f90a4bc9a99ec51165ac7e651d937f9..07e8f98224f63d65342151f583a378e3ff9cc0f5 100644 (file)
@@ -37,7 +37,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     long port;
index 03418e3648ddcea22fb38e05dff3a255e05f4fa5..01270be8132b704adb0d3e92c2aeaa743b96e646 100644 (file)
@@ -39,7 +39,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   void *pointer = 0x2345454;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* set the private pointer */
   curl_easy_setopt(curl, CURLOPT_PRIVATE, pointer);
index 5825669c470a863ed197e54920d5ca70c96b8c0b..d0b59a143271df8d1773a688c5530b6c541914e7 100644 (file)
@@ -46,7 +46,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     long protocol;
index fa6bb41f8a6046b7875f7a0ec76b5ef4d2bc4e64..fed3c22944587e723cd33466d84d671569195ea9 100644 (file)
@@ -38,7 +38,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_PROXY, "http://127.0.0.1:80");
 
   res = curl_easy_perform(curl);
index 61d79830b80f88702462f18b7366dec4966790ce..42549be015ed6a367181f9d9df7b5e691be9ef77 100644 (file)
@@ -37,7 +37,7 @@ HTTP(S)
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
index f4f882e5be23d0daf8b9fb362a8da0ea49e6b351..60264d67fa4a04d9c6f41df6fbbc1b95edca752a 100644 (file)
@@ -43,7 +43,7 @@ HTTP(S)
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     char *url = NULL;
index 43b183fc4e719e207a87c475fee0aba75df58f53..d8af02a873e02cbe36221ff92f9991edee75a992 100644 (file)
@@ -38,7 +38,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     long req;
index fec99596f655eddbca9cabf72a62e38811c37016..97bc37c08ccbb654fd6d4f329e3bada39590f472 100644 (file)
@@ -42,7 +42,7 @@ HTTP, FTP and SMTP
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     long response_code;
index 87fbd97e57488c683e752d96839c84cae1b6556e..8c7efdc5f867d8eb7f2b4837439c8dc7c9c05578 100644 (file)
@@ -44,7 +44,7 @@ HTTP(S)
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     curl_off_t wait = 0;
index 8fe0c781f6f154bbbb84546c54e983117abe5dc9..a2d0a5fafaa60e28ac5ce8cd1665fdd796428486 100644 (file)
@@ -42,7 +42,7 @@ All
 CURL *curl = curl_easy_init();
 if(curl) {
   CURLcode res;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   res = curl_easy_perform(curl);
   if(res == CURLE_OK) {
     char *scheme = NULL;
index 6253fed798856ac63c919a906fb78f828bd66eac..0b0b872c382cc7121b40859cbbcdab89ad5cdbe2 100644 (file)
@@ -42,7 +42,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index edf24f69cb1e1d78a6df60600c3105c18da59336..107e464cd623a12472d59e466b3d24b25583908c 100644 (file)
@@ -39,7 +39,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index 704902d6c89ae2d3ea6dca73aceb8777d6a2dc23..aa6e8987cdc96109b000e18d7a6556523de6e155 100644 (file)
@@ -39,7 +39,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index 960692919d5f57b3ef36ae36a120adb9d6b14c53..e6bd9a43433c4bc8b32322843faa830fe90715ed 100644 (file)
@@ -36,7 +36,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index e78503c1044684f11da50551eae15c52bf6a32ac..b2c4125185db856451f89c251b5122c3f41af0bd 100644 (file)
@@ -38,7 +38,7 @@ sensible variable type.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index f26c6bd923af0d0cb41e6af48d43721c4c2b9417..abc21c620226540fd6ee6a7e961cb13281e4b4dc 100644 (file)
@@ -35,7 +35,7 @@ that curl measured for the complete download. Measured in bytes/second.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index 9d2e330d0b83c03638a98d0f7e7792dcb6aa5360..d9e1f5206b5a022011d10f053104a62d07443759 100644 (file)
@@ -38,7 +38,7 @@ sensible variable type.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index 21887c0105967691e3334c2839fd088f3d5b6797..7356797a8c2ea986ac2e404badfd14273d697909 100644 (file)
@@ -35,7 +35,7 @@ curl measured for the complete upload. Measured in bytes/second.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* Perform the request */
   res = curl_easy_perform(curl);
index fc8aa4e5230e62b70426d8032d54bc09ae292729..bfa9c7f7202e0ec0a0420868cd93b253bfe98eb9 100644 (file)
@@ -82,7 +82,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* enable all supported built-in compressions */
   curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
index 4d8a1c04dc08b3056d95561aa8e56e91ffe9d30b..458d03a9fff0fcb101ea3802bcc2e0762c39df63 100644 (file)
@@ -39,7 +39,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* follow redirects */
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
index 2adb9bb098131dfc762172d8a5fdbdbc5e97cd16..c939a694aa275b8f6f984c076046389e6f39e698 100644 (file)
@@ -47,7 +47,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* complete connection within 10 seconds */
   curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L);
index 4817301314dace768343fda420dfe09e40296f07..fc129897d5d8762a0ad9ff14e42512f89bf0148d 100644 (file)
@@ -47,7 +47,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* complete connection within 10000 milliseconds */
   curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 10000L);
index 1a1c130be5a1c6c63425dda6d04f34391ac05afa..269e1caa65efa136590747c5d80e57836044ff46 100644 (file)
@@ -93,7 +93,7 @@ connect_to = curl_slist_append(NULL, "example.com::server1.example.com:");
 curl = curl_easy_init();
 if(curl) {
   curl_easy_setopt(curl, CURLOPT_CONNECT_TO, connect_to);
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_perform(curl);
 
index 19b356d72e8bcd1647ec556b8d058b5e78a436b5..01cb1c8705123ae1833ee16f3dfbfe2fa009ef5a 100644 (file)
@@ -66,7 +66,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_setopt(curl, CURLOPT_COOKIE, "tool=curl; fun=yes;");
 
index 37ebb24a83e184ecf428adece01e812a6ebb1ab9..837529ff9a5834f53e1baacbbb2a5ae3015808ba 100644 (file)
@@ -65,7 +65,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* get cookies from an existing file */
   curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
index c4fb72cf14be92392e29cdda3b0e6b92574d7e16..fec9f7a295c993903748a5d96c8cc205c503ca25 100644 (file)
@@ -57,7 +57,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* export cookies to this file when closing the handle */
   curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "/tmp/cookies.txt");
index c4c015f826629d23f3b5c4e9dc4e91839f77db34..a1d1defeb6b3e6e0f1f07973fb3b2b79e3fd108b 100644 (file)
@@ -45,7 +45,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* new "session", don't load session cookies */
   curl_easy_setopt(curl, CURLOPT_COOKIESESSION, 1L);
index ddf1eef3ca5000a53ac56cc592547853aa320ec6..03eafc952983841832a533d202bb2156da30c847 100644 (file)
@@ -50,7 +50,7 @@ HTTP(S)
 CURL *curl = curl_easy_init();
 if(curl) {
   char local_buffer[1024]="data to send";
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* size of the data to copy from the buffer and send in the request */
   curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 12L);
index 8fc006bf5e5b74fa0a38a5988f258fed0073316a..962dbe3f8bd9ff7ceb352482117224fd8629f09a 100644 (file)
@@ -50,7 +50,7 @@ CURLU *urlp = curl_url();
 int res = 0;
 if(curl) {
 
-  res = curl_url_set(urlp, CURLUPART_URL, "http://example.com", 0);
+  res = curl_url_set(urlp, CURLUPART_URL, "https://example.com", 0);
 
   curl_easy_setopt(handle, CURLOPT_CURLU, urlp);
 
index 4d21a7ae09522baf1ddb499deeb28c9f5b4d496b..94d296d27cf12e87127ec78b856058291e78fd82 100644 (file)
@@ -91,7 +91,7 @@ HTTP, FTP, IMAP, POP3 and SMTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* DELETE the given path */
   curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
index 0930bf8c8c362fc50a095180a50cafa27eade678..eb64df2a8b1cec4f7672a7457e281b8248fde3a7 100644 (file)
@@ -166,7 +166,7 @@ int main(void)
     /* example.com is redirected, so we tell libcurl to follow redirection */
     curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
 
-    curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
+    curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
     res = curl_easy_perform(curl);
     /* Check for errors */
     if(res != CURLE_OK)
index ac5f913a38e4c17fcb824e6c6afa865284fc6ed8..7bc62618f37309181697f35af5156d1914a54282 100644 (file)
@@ -39,7 +39,7 @@ Several
 CURL *curl = curl_easy_init();
 if(curl) {
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, 1L);
 
   curl_easy_perform(curl);
index 24b61a839a8a91eb146ff674f2a315472c67c573..674fd7add2d7d89128e15df0bb0e47b708e44193 100644 (file)
@@ -50,7 +50,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* only reuse addresses for a very short time */
   curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 2L);
index 824ca1ea6b2168c06720784301904be6e3e72934..237c38bf0279c9b73f20e353a18a5203cec30fba 100644 (file)
@@ -42,7 +42,7 @@ NULL
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_DNS_INTERFACE, "eth0");
   ret = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
index d29242be82334aaa09d74988316448dc075835c0..4c3788119215e95dc4669b0dda712ed539af12e8 100644 (file)
@@ -43,7 +43,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP4, "192.168.0.14");
   ret = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
index 3402f346c8e83bd4be6b322e07a97eeb9381d185..dbdc9d2ed35c77e2fdf7aeecda1a2377a326529e 100644 (file)
@@ -43,7 +43,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP6, "fe80::a9ff:fe46:b619");
   ret = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
index 0067494ae65521888aa1b6453540a87b75e71b6d..6b5068c355cbc625cf66f1a706197ba7bbcae29e 100644 (file)
@@ -47,7 +47,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_DNS_SERVERS, "192.168.1.100:53,192.168.1.101");
   ret = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
index b3ac1c5d04564285946dd7e764ba7db071b16644..59ca1614c8ee824c4a3654ac58d4c3a86fa8c129 100644 (file)
@@ -53,7 +53,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_DOH_URL, "https://dns.example.com");
   curl_easy_perform(curl);
 }
index 6d600ac7764c84693b37e113a07f40d3d547a424..96d986ec937922bce00dbadcfe20fd1c62a3653d 100644 (file)
@@ -56,7 +56,7 @@ if(curl) {
   CURLcode res;
   char errbuf[CURL_ERROR_SIZE];
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* provide a buffer to store errors in */
   curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
index c6867795d227b8b2007b55035caeea16730f81b1..371ff1e7734f0742bcbd82d992a4be0b8519ce60 100644 (file)
@@ -43,7 +43,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* wait 3 seconds for 100-continue */
   curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 3000L);
index 346cb9262349078fb340db49fa5628f62baffb1b..5df25b0bb95d1febe05120923acaf1d7f1474afa 100644 (file)
@@ -63,7 +63,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* example.com is redirected, so we tell libcurl to follow redirection */
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
index 0cd7b6fac72d712c81863b6f31eef8b1a1322104..dd4a3fe07b2d5dfefe00ece5b73c99cc3c601502 100644 (file)
@@ -55,7 +55,7 @@ Most
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
 
index 73dcc2bb92a37ea565c90056d04a03ac12029eca..fe7c692bb2eb9e12c5d1b300d980c72e596f8fd4 100644 (file)
@@ -60,7 +60,7 @@ static size_t header_callback(char *buffer, size_t size,
 CURL *curl = curl_easy_init();
 if(curl) {
   struct my_info my = { 10, "the cookies are in the cupboard" };
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header_callback);
 
index c800efb674c74902b118d47f5228a443e629aaea..c3303c242799290cb2462c0c4cc665cfd826c7cc 100644 (file)
@@ -102,7 +102,7 @@ static size_t header_callback(char *buffer, size_t size,
 
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header_callback);
 
index 24d33053fea1debf6da93a54689a2da950a80526..f847225350f5a5cce05fe8fc184f469156cadb45 100644 (file)
@@ -53,7 +53,7 @@ HTTP
 CURL *curl = curl_easy_init();
 if(curl) {
   struct curl_slist *list;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   list = curl_slist_append(NULL, "ICY 200 OK");
   list = curl_slist_append(list, "WEIRDO 99 FINE");
index 831fed81a2a9fe51fece608e3890e556d6b579d4..48af83f43bcd561d8e61a17843937144b42c1a63 100644 (file)
@@ -46,7 +46,7 @@ HTTP(S)
 .nf
 curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* use a GET to fetch this */
   curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
index 821a5ca41eb41807730ffe0f311abd023c245e17..5c9851a291baf34e6486e41efb9aae66ac24218f 100644 (file)
@@ -102,7 +102,7 @@ CURL *curl = curl_easy_init();
 struct curl_slist *list = NULL;
 
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   list = curl_slist_append(list, "Shoesize: 10");
   list = curl_slist_append(list, "Accept:");
index 3358cf90ed0a2f2228a59e917bb556bf9c0c1f16..c7cdab3ea1413f5ca4cd60beb01edfa9d86c0bd0 100644 (file)
@@ -51,7 +51,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* we know the server is silly, ignore content-length */
   curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 1L);
index bf30db74bdf1aa8f808263759aefe1d677f62d10..6d7d53dcac0894f1cbc2387443b726efd26e3d94 100644 (file)
@@ -54,7 +54,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   curl_easy_setopt(curl, CURLOPT_INTERFACE, "eth0");
 
index a23d883fd9b3311fdef0ba08d5093aedd6552f62..093dfd54dd7dd679c3606973f33233ec11f87bc1 100644 (file)
@@ -45,7 +45,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   /* resolve host name using IPv6-names only */
   curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
index 82427e17dc673021a1e623edc11b55a47a811274..e2b9ce58032e59b8038b67f7a29616f23203f308 100644 (file)
@@ -43,7 +43,7 @@ All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_SSLCERT, "client.pem");
   curl_easy_setopt(curl, CURLOPT_SSLKEY, "key.pem");
   curl_easy_setopt(curl, CURLOPT_KEYPASSWD, "superman");
index 007aa63388fcbe610f661a13e23e5d90f7085283..3197497299f56b7659e6f781062425cfdd767755 100644 (file)
@@ -40,7 +40,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_LOCALPORT, 49152L);
   /* and try 20 more ports following that */
   curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, 20L);
index 6719825f77942d02bdd8de5ed82e51787084a8f2..0256716b89cbfbb5b6192f7d8a474167698d2a9b 100644 (file)
@@ -44,7 +44,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_LOCALPORT, 49152L);
   /* and try 20 more ports following that */
   curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, 20L);
index f91bf7a8dfa4d705be8d9d056652d32fb63b9efe..cb54d0b4e1d3a076d89e39d9add6892dd0eb162f 100644 (file)
@@ -48,7 +48,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* only allow 30 seconds idle time */
   curl_easy_setopt(curl, CURLOPT_MAXAGE_CONN, 30L);
index 60411bcb10d84116609a80846efcc07d7c65c00f..9613a65f9eae3fb905a2ac0ceeb5d9969eab2eb1 100644 (file)
@@ -44,7 +44,7 @@ HTTP(S)
 .nf
 curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
 
   /* enable redirect following */
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
index b8132d8f869121294aa99466f3279f90950752a7..de5b0fdace3eb3391d2d7b4d3387ef13559bf760 100644 (file)
@@ -40,7 +40,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* enable progress meter */
   curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
index b1ddcaed5031919de608e1051f906af1e3cf0951..0b2656b48f2b140f513e80ac109d0aa72eadfb54 100644 (file)
@@ -44,7 +44,7 @@ Most
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   curl_easy_setopt(curl, CURLOPT_PASSWORD, "qwerty");
 
index d54b212076bec9dfb9b0c5c708e885fbd6c7ea64..cf90e3547437121175a5a112aab3fccdcd530566 100644 (file)
@@ -48,7 +48,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/../../etc/password");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/../../etc/password");
 
   curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, 1L);
 
index 6c7b9dc828b91a2d1dd6b2b7995ffac1b3cb3705..2a7be0b9f26074c1c6021ce67ea05e285c2cac3b 100644 (file)
@@ -45,7 +45,7 @@ Used for all protocols that speak to a port number.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_PORT, 8080L);
   ret = curl_easy_perform(curl);
   curl_easy_cleanup(curl);
index 2f3d43d6773b06dcb3c3043d7583e93d3e2ccbc6..b2b5b6990c99bad51c456b4bd552b7444c145063 100644 (file)
@@ -72,7 +72,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_POST, 1L);
 
   /* set up the read callback with CURLOPT_READFUNCTION */
index f672b93a98f82745a3045601c01b953e64b393b5..bd4aa73309a80f74a380deddd669e1717410e911 100644 (file)
@@ -69,7 +69,7 @@ CURL *curl = curl_easy_init();
 if(curl) {
   const char *data = "data to send";
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* size of the POST data */
   curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 12L);
index dba49887f291e6fd64753c0cd84e869d733211e7..761bfc2c816fe2a5ad5969f3c090f4e9db72a48e 100644 (file)
@@ -44,7 +44,7 @@ CURL *curl = curl_easy_init();
 if(curl) {
   const char *data = "data to send";
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* size of the POST data */
   curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) strlen(data));
index 666f638f66ee6f1823804b075cfaa85329ff191c..f93690b7e2b6b6a5109af3383800b6c934005fc1 100644 (file)
@@ -45,7 +45,7 @@ if(curl) {
   const char *data = large_chunk;
   curl_off_t length_of_data; /* set somehow */
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* size of the POST data */
   curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, length_of_data);
index 087d7d268178341a26a5e26c6885d9bac3e07eb2..5bf46c478eb3385cde1fdf547924c3ad22e99dc0 100644 (file)
@@ -52,7 +52,7 @@ HTTP(S)
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* a silly POST example */
   curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "data=true");
index 92ca524bbcdbb3e5d0157b984e0af935879c48b2..1a593d7bc529a028c0543ed06b5834f7edc42c50 100644 (file)
@@ -64,7 +64,7 @@ All except file://. Note that some protocols don't do very well over proxy.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/file.txt");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/file.txt");
   curl_easy_setopt(curl, CURLOPT_PREPROXY, "socks4://socks-proxy:1080");
   curl_easy_setopt(curl, CURLOPT_PROXY, "http://proxy:80");
   curl_easy_perform(curl);
index 86dfb5a41edbec075c54763a875b3e833b698e17..8d7d8d9059c7c3e92f8e56e1891e0ef8ff71957e 100644 (file)
@@ -42,7 +42,7 @@ CURL *curl = curl_easy_init();
 struct private secrets;
 if(curl) {
   struct private *extracted;
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* store a pointer to our private struct */
   curl_easy_setopt(curl, CURLOPT_PRIVATE, &secrets);
index d64aebda0ca8de7163d51090ea6289433df9511d..7e26c610d6c84860763ceccd2357506b1f48382f 100644 (file)
@@ -95,7 +95,7 @@ All except file://. Note that some protocols don't do very well over proxy.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/file.txt");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/file.txt");
   curl_easy_setopt(curl, CURLOPT_PROXY, "http://proxy:80");
   curl_easy_perform(curl);
 }
index c164170dd630dcc5cc6fe2a01a96b6487597fb88..553196e1ed3e61fa7a65090f392544b249331bfd 100644 (file)
@@ -44,7 +44,7 @@ Most
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_PROXY, "http://localhost:8080");
   curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, "mrsmith");
   curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, "qwerty");
index 30ed17f11f6ec8b18b0c55bc70fbc28ca11a8ca4..8c98e7e2aa47a08b9a2cc708a53f00752b1c077d 100644 (file)
@@ -42,7 +42,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_PROXY, "localhost");
   curl_easy_setopt(curl, CURLOPT_PROXYPORT, 8080L);
   ret = curl_easy_perform(curl);
index e4262e6db2e67b260ab5af01766fb4f2dffb8afa..fd57e11ff5d810531f840f570b1fe9472d2c9196 100644 (file)
@@ -48,7 +48,7 @@ Most
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_PROXY, "http://localhost:8080");
   curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, "mrsmith");
   curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, "qwerty");
index cdf4e088504ab4cc2525934e5b68c8ca6d05059b..78ea649a9f5ea76d05c7c2c7a1afdf0390de31d6 100644 (file)
@@ -46,7 +46,7 @@ Used with all protocols that can use a proxy
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_PROXY, "http://localhost:8080");
   curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, "clark%20kent:superman");
   ret = curl_easy_perform(curl);
index 22c36a3bca17e98b5c9960346ad647cb2fe81d4b..59941061f3a69d29fae4d8fd3e43cb1600258d5e 100644 (file)
@@ -45,7 +45,7 @@ Used with HTTPS proxy
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
   curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443");
   curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "superman");
   ret = curl_easy_perform(curl);
index f86904f6d6653dce5d01ea3232c61ddbafb7e096..53fe7aec156caf6785959aa9bb0978110aecaeef 100644 (file)
@@ -63,7 +63,7 @@ HTTP, FTP, FILE, RTSP and SFTP.
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* get the first 200 bytes */
   curl_easy_setopt(curl, CURLOPT_RANGE, "0-199");
index 4370ee57830303c959ceb01d6f37a181e4ac7c08..5f54e7a94bc3ef057c7a99797d9c467b21620df2 100644 (file)
@@ -47,7 +47,7 @@ This is used for all protocols when sending data.
 CURL *curl = curl_easy_init();
 struct MyData this;
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* pass pointer that gets passed in to the
      CURLOPT_READFUNCTION callback */
index e0225755274076bea76bd9d7c8f2baea637e4e75..934788933de270f237c40df76d734766537221dc 100644 (file)
@@ -43,10 +43,10 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* tell it where we found the link to this place */
-  curl_easy_setopt(curl, CURLOPT_REFERER, "http://example.com/aboutme.html");
+  curl_easy_setopt(curl, CURLOPT_REFERER, "https://example.com/aboutme.html");
 
   curl_easy_perform(curl);
 }
index eabefaa2dfb01e0c28befb7f0f9ed3949af63a1f..0527490ac8354418df65b1debae655525b6f4f7c 100644 (file)
@@ -38,7 +38,7 @@ HTTP
 .nf
 curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/*");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/*");
   curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
 
   /* issue an OPTIONS * request (no leading slash) */
index f5885e35f814f3825a79bdf2338e4cc00b240e79..b40a62976fd2c3e3952a0b379fd2442d8f2b8bca 100644 (file)
@@ -79,7 +79,7 @@ host = curl_slist_append(NULL, "example.com:80:127.0.0.1");
 curl = curl_easy_init();
 if(curl) {
   curl_easy_setopt(curl, CURLOPT_RESOLVE, host);
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_perform(curl);
 
index 4d8f8793e4f9eb4ff9b12015b975251ac1477e86..4edf7f489e6650fdf11fa195fbffae91e6425e04 100644 (file)
@@ -50,7 +50,7 @@ CURL *curl = curl_easy_init();
 if(curl) {
   curl_easy_setopt(curl, CURLOPT_RESOLVER_START_FUNCTION, resolver_start_cb);
   curl_easy_setopt(curl, CURLOPT_RESOLVER_START_DATA, curl);
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_perform(curl);
   curl_easy_cleanup(curl);
 }
index fd11910ced4c9a4c5c25ec57385051f5c8cd924b..8ea1a1263a2c9acb2bde47310f8414100c76cf43 100644 (file)
@@ -70,7 +70,7 @@ CURL *curl = curl_easy_init();
 if(curl) {
   curl_easy_setopt(curl, CURLOPT_RESOLVER_START_FUNCTION, resolver_start_cb);
   curl_easy_setopt(curl, CURLOPT_RESOLVER_START_DATA, curl);
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_perform(curl);
   curl_easy_cleanup(curl);
 }
index 54d9ea05201080fc53a9fc41bdbf1d180da3c890..92da8d5be4f38d6d4b386349a02e16fc357395da 100644 (file)
@@ -48,7 +48,7 @@ curl = curl_easy_init();
 if(curl) {
   int recvbuffersize = 256 * 1024;
 
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
 
   /* call this function to set options for the socket */
   curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, sockopt_callback);
index c43bad6c19bba1762bd9b13fc73a94f2999cbd48..9318e116a3ec83d86cdd828a3c3b47ab5d9c56c7 100644 (file)
@@ -40,7 +40,7 @@ All
 CURL *curl = curl_easy_init();
 FILE *filep = fopen("dump", "wb");
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_STDERR, filep);
 
   curl_easy_perform(curl);
index 5949e3e447ebfa0d9d5345958b7851069ac8d2e0..41adf3570cba1a4a79a952d6d7cc7f69ed8e27ac 100644 (file)
@@ -41,7 +41,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L);
   curl_easy_perform(curl);
 }
index e387dcc2afe247bf09779b789a0dbd725e9658d1..a6678528a93a3263879191dd05098c384c3b0c9f 100644 (file)
@@ -41,7 +41,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* enable TCP keep-alive for this transfer */
   curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
index 41f5531c461cad0fd53911f0d70439686b620344..f2c8d3f17e62ab34d6a7301d621cddd51da629f5 100644 (file)
@@ -39,7 +39,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* enable TCP keep-alive for this transfer */
   curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
index 28bd23eb91d3a2a90daedc552211854ce1600972..bed5a91074d43641ee7ff81a55c4fdecfbedae0d 100644 (file)
@@ -39,7 +39,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* enable TCP keep-alive for this transfer */
   curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
index d40fc19c879a809ac4bf482b0c67bac149f33bf7..2e9aa3123a54fee78bf6f737306f5a1aacbc4d91 100644 (file)
@@ -50,7 +50,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   /* disable Nagle */
   curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 0);
   curl_easy_perform(curl);
index a8fcea7b104cb0eda330156438f161fa3c026ff9..a139b3eeec26fe2c80445a15c27bc3d6d8fac620 100644 (file)
@@ -45,7 +45,7 @@ HTTP, FTP, RTSP, and FILE
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* January 1, 2020 is 1577833200 */
   curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 1577833200L);
index 6de808257f7b293eb803331c7d0acb15fc2c2fbd..a47fa6b647da25acc22d8143f93953aaeaba00ed 100644 (file)
@@ -54,7 +54,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* complete within 20 seconds */
   curl_easy_setopt(curl, CURLOPT_TIMEOUT, 20L);
index a18b00b1783c63f7ab69a72e442672c2aac82702..9d5645bd39cac607db6f6782364135486ba7873e 100644 (file)
@@ -57,7 +57,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* complete within 20000 milliseconds */
   curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 20000L);
index 66c582d075a2e712805f556ec86e6c5c98e8b005..7e9a8d1fb65dd888a227569acb3255575ed09c35 100644 (file)
@@ -42,7 +42,7 @@ HTTP, FTP, RTSP, and FILE
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* January 1, 2020 is 1577833200 */
   curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 1577833200L);
index 884b512365e888f46aff86771465a06bb8c7021d..a7961a315d2f8a07691e610a8c5781d8fca607c8 100644 (file)
@@ -43,7 +43,7 @@ HTTP, FTP, RTSP, and FILE
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* January 1, 2020 is 1577833200 */
   curl_easy_setopt(curl, CURLOPT_TIMEVALUE_LARGE, (curl_off_t)1577833200);
index 1b55e1d5b96be79f25e9462a2c28de6259dcb49b..ab6198c6f63f713c7de2bf5bd7e64388b41d0bd9 100644 (file)
@@ -73,7 +73,7 @@ static int trailer_cb(struct curl_slist **tr, void *data)
 CURL *curl = curl_easy_init();
 if(curl) {
   /* Set the URL of the request */
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
   /* Now set it as a put */
   curl_easy_setopt(curl, CURLOPT_PUT, 1L);
 
index 9d5046e26ff49ab07e69392443a76f0ee79742c1..5ce3bca55362d74cc7c10b9b952be0aa1d5e371f 100644 (file)
@@ -48,7 +48,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L);
   curl_easy_perform(curl);
 }
index a0099b2ef54b1783ad40b70f0ca8abff97bdf74a..9f333d7c703a4d21d6aa4a66179b1a76bfe66799 100644 (file)
@@ -46,7 +46,7 @@ HTTP
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
   curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1L);
   curl_easy_perform(curl);
index 03681874132d37c9d47225326ef84fd3ca4b3984..f9222c3b4ba28110ae96a3e2274eb364599496b2 100644 (file)
@@ -339,7 +339,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_perform(curl);
 }
index 7a16223d9c19bd5638d9ec4ed9062754e7d5609b..de731c94a9ee9730775191500b5f50db484075c4 100644 (file)
@@ -43,7 +43,7 @@ HTTP, HTTPS
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   curl_easy_setopt(curl, CURLOPT_USERAGENT, "Dark Secret Ninja/1.0");
 
index c8cb90eec25db16730f0e9489764cd645cdc4180..1674bb5372d179cc12620da92f2244cb71f8ba6a 100644 (file)
@@ -66,7 +66,7 @@ Most
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   curl_easy_setopt(curl, CURLOPT_USERNAME, "clark");
 
index 10b674523936f9a5f830b562044b660a15ea6afc..617792816ba9afb11d5abd4a936e2f13f6425414 100644 (file)
@@ -72,7 +72,7 @@ Most
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/foo.bin");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
 
   curl_easy_setopt(curl, CURLOPT_USERPWD, "clark:kent");
 
index 40d69357f72cc75bc2b136fb11a85da000b6ded1..99b5da91397308aad8ef09ff2926e5825a6de018 100644 (file)
@@ -46,7 +46,7 @@ All
 .nf
 CURL *curl = curl_easy_init();
 if(curl) {
-  curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
+  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
 
   /* ask libcurl to show us the verbose output */
   curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);