request assistance resolving a std.net.curl segmentation fault

kdevel kdevel at vogtner.de
Fri May 19 12:28:20 UTC 2023


On Friday, 19 May 2023 at 11:07:01 UTC, anonymouse wrote:
> What am I doing wrong here?
> [...]
>             curl.set(CurlOption.writedata, &fp);

According to [1] this line must read

```
    curl.set(CurlOption.writedata, cast (void *) fp.getFP());
```

[1] https://curl.se/libcurl/c/CURLOPT_WRITEDATA.html



More information about the Digitalmars-d-learn mailing list