auto fileStream = fstream::open_istream("file_to_send").get(); auto response = client.request(methods::PUT, "upload-file", fileStream).get();