Solved by a workaround: // before anything else in method call() http.handle.set(CurlOption.customrequest, cast(void*) null); http.clearRequestHeaders(); Hope this will help is anyone else has this problem.