#HTTPS PUT file
1 messages · Page 1 of 1 (latest)
const ChildProc = @import("std").ChildProcess;
var child_proc = ChildProcess.init(
&.{ curl_path, "--upload-file", "myfile.png", "https://server.com" },
gpa,
); //curl_path can be just curl, if it is in your PATH or otherwise relative or absolute path
try child_proc.spawn();
const ret_val = try child_proc.wait();
try testing.expectEqual(ret_val, .{ .Exited = 0 });
thanks - I guess you missed the part where I asked what my options are besides spawning a child process 😆.
rad, thanks
https://github.com/haze/zelda for a mostly zig solution (tls is handled by a C library)