std.net.curl.CurlException Couldn't resolve host name on handle

Andre Pany andre at s-e-a-p.de
Sat Mar 14 05:22:09 UTC 2020


On Saturday, 14 March 2020 at 04:24:20 UTC, Vino wrote:
> On Friday, 13 March 2020 at 18:10:51 UTC, Vino wrote:
>> [...]
>
> Hi All,
>
>   I was able to resolve this issue by upgrading DMD from V88 to 
> V91.0, and now I am getting the below error when i set any of 
> the below options
>
> http.handle.set(CurlOption.ipresolve, "v4");
> http.handle.set(CurlOption.http_version, "v1_1");
> http.handle.set(CurlOption.sslversion,  "sslv3");
>
> Error:
> std.net.curl.CurlException at std\net\curl.d(4388): A libcurl 
> function was given a bad argument on handle CF2990
> ----------------
> 0x0040B425
> 0x00402397
> 0x00406E17
> 0x00406D91
> 0x00406C2A
> 0x0040404A
> 0x0040242F
> 0x75BC6359 in BaseThreadInitThunk
> 0x77BB7B74 in RtlGetAppContainerNamedObjectPath
> 0x77BB7B44 in RtlGetAppContainerNamedObjectPath
>
> from,
> Vino.B

The value for CurlOption.http_version is wrong. A number is 
expected here. Unfortunately the constants are not in Phobos yet. 
If I remember correctly, please pass the value 4 as work around.

For the other options I am not sure, maybe they also expects 
numbers instead of strings.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list