aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-07 14:39:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-07 14:39:32 +0000
commitb61c25af45ee21a04d2bbab73e21f48fb7345347 (patch)
treeeb1c73ebdfdd462316a68a332d4bede5fa4e261a
parentbf20ed5984be04f5751b741714e4fae6b87f5784 (diff)
make sure that a regular POST using the read callback works
-rw-r--r--lib/http.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index e0a280e28..ff6e432aa 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1568,11 +1568,15 @@ CURLcode Curl_http(struct connectdata *conn)
Curl_pgrsSetUploadSize(data, http->postsize);
}
}
- else
+ else {
/* set the upload size to the progress meter */
Curl_pgrsSetUploadSize(data, data->set.infilesize);
- /* issue the request, headers-only */
+ /* set the pointer to mark that we will send the post body using
+ the read callback */
+ http->postdata = (char *)&http->postdata;
+ }
+ /* issue the request */
result = add_buffer_send(req_buffer, conn->firstsocket, conn,
&data->info.request_size);