request assistance resolving a std.net.curl segmentation fault

anonymouse anony at mouse.com
Fri May 19 16:35:10 UTC 2023


On Friday, 19 May 2023 at 12:28:20 UTC, kdevel wrote:
> 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

Thank you so much.


More information about the Digitalmars-d-learn mailing list