std.net.curl.CurlException Couldn't resolve host name on handle
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");
> std.net.curl.CurlException at std\net\curl.d(4388): A libcurl
> function was given a bad argument on handle CF2990
> 0x75BC6359 in BaseThreadInitThunk
> 0x77BB7B74 in RtlGetAppContainerNamedObjectPath
> 0x77BB7B44 in RtlGetAppContainerNamedObjectPath
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.
More information about the Digitalmars-d-learn