On Tuesday, 26 March 2024 at 07:13:24 UTC, confuzzled wrote:
Hello all,

I have two scripts. I copied the first directly from the alpaca website and massaged it with etc.c.curl until it compiled in D. The result is that it creates the order and returns the result to stdout. In the second script, I tried to use std.net.curl but cannot get it to work.

I think you should use the HTTP interface, did you check this docs?
https://dlang.org/phobos/std_net_curl.html#.HTTP
https://dlang.org/phobos/std_net_curl.html#.HTTP.addRequestHeader


Andrea

Reply via email to