aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/ftpget.c16
-rw-r--r--docs/examples/postit2.c10
-rw-r--r--docs/examples/simple.c8
3 files changed, 19 insertions, 15 deletions
diff --git a/docs/examples/ftpget.c b/docs/examples/ftpget.c
index 2c2275fa5..0274b7f69 100644
--- a/docs/examples/ftpget.c
+++ b/docs/examples/ftpget.c
@@ -1,8 +1,8 @@
/*****************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* $Id$
@@ -49,10 +49,14 @@ int main(void)
};
curl_global_init(CURL_GLOBAL_DEFAULT);
-
+
curl = curl_easy_init();
if(curl) {
- /* Get curl 7.9.2 from sunet.se's FTP site: */
+ /*
+ * Get curl 7.9.2 from sunet.se's FTP site. curl 7.9.2 is most likely not
+ * present there by the time you read this, so you'd better replace the
+ * URL with one that works!
+ */
curl_easy_setopt(curl, CURLOPT_URL,
"ftp://ftp.sunet.se/pub/www/utilities/curl/curl-7.9.2.tar.gz");
/* Define our callback to get called when there's data to be written */
diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c
index d1ecadd61..e022d284f 100644
--- a/docs/examples/postit2.c
+++ b/docs/examples/postit2.c
@@ -1,8 +1,8 @@
/*****************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* $Id$
@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
CURLFORM_COPYNAME, "filename",
CURLFORM_COPYCONTENTS, "postit2.c",
CURLFORM_END);
-
+
/* Fill in the submit field too, even if this is rarely needed */
curl_formadd(&formpost,
diff --git a/docs/examples/simple.c b/docs/examples/simple.c
index 1b93dd83b..baee2ce0d 100644
--- a/docs/examples/simple.c
+++ b/docs/examples/simple.c
@@ -1,8 +1,8 @@
/*****************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* $Id$