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 .
0:% cat ./source/app.d
import std.stdio;
import std.net.curl;

void main()

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

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

0:% exit

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