request assistance resolving curl error

Andrea Fontana nospam at example.org
Tue Mar 26 11:44:25 UTC 2024


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


More information about the Digitalmars-d-learn mailing list