From: Daniel Stenberg Date: Wed, 27 Mar 2002 22:53:06 +0000 (+0000) Subject: fopen(... "rb") when reading what to post, so that binary posting works X-Git-Tag: curl-7_9_6~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a7def101ba4d4b638c5ab23b5fea58b57a27a57;p=curl fopen(... "rb") when reading what to post, so that binary posting works on Windows! --- diff --git a/src/main.c b/src/main.c index 5ede3fac0..a7c516be8 100644 --- a/src/main.c +++ b/src/main.c @@ -1225,7 +1225,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ if(strequal("-", nextarg)) file = stdin; else - file = fopen(nextarg, "r"); + file = fopen(nextarg, "rb"); if(subletter == 'b') /* forced binary */ postdata = file2memory(file, &config->postfieldsize);