I'm trying to execute a simple request adding some headers but it fails with time-out. Here's my test code: import httpclient const division :string = "\c\L" const userAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Windows Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36" const headers = "Accept-Language: en-US,en;q=0.8,es;q=0.6" & division & "Connection:keep-alive" const url = "https://duckduckgo.com/?q=site%3Anim-lang.org+extraHeaders&t=canonical&ia=web" var content:string = getContent(url, extraheaders = headers, userAgent = userAgent)
I'm compiling it with: nim c -r -d:ssl request_test.nim If I remove the _extraHeader_ parameter it works well OK. Any idea what's wrong? Nim version: Nim Compiler Version 0.14.3 (2016-08-23) [Linux: amd64]