curl-library
[PATCH] tool_operate.c: add Windows support for file-uploads using stdin
Date: Wed, 16 Dec 2015 16:33:36 +0100
Hello everyone,
I propose the following patch to src/tool_operate.c in order to add
Windows support for file-uploads using stdin, especially for
interoperability with the custom stdin handling in lib/telnet.c.
It would be great if you guys could run your test suites on other
platforms with this patch. This would also fix test case 1326 getting
stuck on Windows.
An alternative solution would be to add Windows stdin handling to the
custom read function in src/tool_cb_rea.c, but that probably will not be
easy.
Actually I wonder why the current implementation works on Linux, since
the non-Windows implementation in lib/telnet.c also does not handle
end-of-file if a custom read function is used.
Best regards,
Marc
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/plain attachment: stored