On Wed, 19 Jun 2019 11:01:53 GMT, Ole Erik Brennhagen wrote:

Quick correction: If I do dub build and then manually run the binary it works fine too.

So, the issue is the dub run command.

I tried it exactly same as yours, it worked ok for me.

0:% dub clean
Cleaning package at /home/billy/usr/D/forum...
0:> find .
.
./source
./source/app.d
./forum
./.dub
./.gitignore
./dub.json
./list
0:% cat ./source/app.d
import std.stdio;
import std.net.curl;

void main()
{

  auto content = get("https://httpbin.org/get");
  writefln(content);

}
0:% dub run
Performing "debug" build using /usr/bin/dmd for x86_64.
forum ~master: building configuration "application"...
Linking...
Running ./forum
{
"args": {},
"headers": {
"Accept": "/",
"Host": "httpbin.org",
"User-Agent": "Phobos-std.net.curl/2.089 (libcurl/7.58.0)"
},
"origin": "62.189.181.17, 62.189.181.17",
"url": "https://httpbin.org/get"
}

0:% exit

Script done on 2019-11-20 10:23:54+0000