curl -T file.txt http://localhost:9998/tika
and it returns text as a result.
When I attempt to do the same thing in D code as follows:
import std.net.curl;
upload("file.txt", "http://localhost:9998/tika");
the text is written to standard out.
I want to capture that text in a variable, but the upload
function returns void. How can I get the text returned by the web
server to be stored in a variable?
