From 5a99be254566758d8ff42d905cad98b1ee7a2e87 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Feb 2000 22:57:42 +0000 Subject: updated to use the new set of progress-functions --- lib/http.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'lib/http.c') 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 */ -- cgit v1.2.3