aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-02-14 22:57:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-02-14 22:57:42 +0000
commit5a99be254566758d8ff42d905cad98b1ee7a2e87 (patch)
treefc1661b871bdbcd45a6ca3c8a8206e0f9342022f /lib/http.c
parentefb410a188fb7f5a9f1d572db1d98b5e3c790a83 (diff)
updated to use the new set of progress-functions
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c
index c37318d8f..bf89d97b0 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -317,8 +317,11 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
sendf(data->firstsocket, data,
"Content-Length: %d\r\n",
postsize-2);
-
+
+ pgrsSetUploadSize(data, postsize);
+#if 0
ProgressInit(data, postsize);
+#endif
result = Transfer(data, data->firstsocket, -1, TRUE, &readbytecount,
data->firstsocket, &writebytecount);
@@ -348,8 +351,11 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
else
sendf(data->firstsocket, data,
"\015\012");
-
+
+#if 0
ProgressInit(data, data->infilesize);
+#endif
+ pgrsSetUploadSize(data, data->infilesize);
result = Transfer(data, data->firstsocket, -1, TRUE, &readbytecount,
data->firstsocket, &writebytecount);
@@ -370,8 +376,12 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
}
if(result)
return result;
-
+
+#if 0
ProgressEnd(data);
+#endif
+ pgrsDone(data);
+
} while (0); /* this is just a left-over from the multiple document download
attempts */