aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-02-21 23:51:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-02-21 23:51:09 +0000
commit10f958029a12a8ba7be12332e7e98df7c13f423e (patch)
treea336ce0e77db91d4b2cc9d2a9244e5492b300438 /lib
parent947a644d5ad0088c418b954fb3af4248c267d5dd (diff)
Added writeout stuff
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 9458acf3a..9b4977eb5 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -430,6 +430,9 @@ UrgError curl_urlget(UrgTag tag, ...)
case URGTAG_WRITEFUNCTION:
data->fwrite = (size_t (*)(char *, size_t, size_t, FILE *))param_func;
break;
+ case URGTAG_WRITEINFO:
+ data->writeinfo = (char *)param_obj;
+ break;
case URGTAG_READFUNCTION:
data->fread = (size_t (*)(char *, size_t, size_t, FILE *))param_func;
break;
@@ -546,6 +549,12 @@ UrgError curl_urlget(UrgTag tag, ...)
else
res = URG_FAILED_INIT; /* failed */
+ if((URG_OK == res) && data->writeinfo) {
+ /* Time to output some info to stdout */
+ WriteOut(data);
+ }
+
+
/* total cleanup */
urlfree(data, TRUE);