aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-05-30 12:51:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-05-30 12:51:24 +0000
commitffa7c1311779f38cc3c8531de9e4336afbda3a3c (patch)
treea60198c5ee91da74f1b70bf1b95114e8cd48a540
parentfbca7a83fc7e013ba532e8695c0a1418c0c5d4d9 (diff)
libcurl now has MUTE and NOPROGRESS set by default
-rw-r--r--lib/url.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index c42e05e8b..8338af242 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -231,6 +231,11 @@ CURLcode Curl_open(CURL **curl, char *url)
data->httpreq = HTTPREQ_GET; /* Default HTTP request */
+ /* make libcurl quiet by default: */
+ data->bits.mute = TRUE; /* CURLOPT_MUTE changes this */
+ data->bits.hide_progress = TRUE; /* CURLOPT_NOPROGRESS changes these */
+ data->progress.flags |= PGRS_HIDE;
+
/* create an array with connection data struct pointers */
data->numconnects = 5; /* hard-coded right now */
data->connects = (struct connectdata **)
@@ -363,6 +368,8 @@ CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
data->bits.hide_progress = va_arg(param, long)?TRUE:FALSE;
if(data->bits.hide_progress)
data->progress.flags |= PGRS_HIDE;
+ else
+ data->progress.flags &= ~PGRS_HIDE;
break;
case CURLOPT_NOBODY:
/*