Open ghost opened 7 years ago
I have a helper proc like this:
import reactor/async, reactor/http/httpclient, reactor/http/httpcommon proc get*(url: string): Future[void] {.async.} = let resp = await request(newHttpRequest(httpMethod="GET", url = $url).get) let data = await resp.dataInput.readUntilEof() echo data get("https://httpbin.org/get").runMain()
But if I try to send an HTTPS request, httpbin.org would answer that this request was an HTTP request, rather than HTTPS.
Did you build with -d:ssl ?
@aguspiza I don't remember, it was more than 2 years ago :)
I have a helper proc like this:
But if I try to send an HTTPS request, httpbin.org would answer that this request was an HTTP request, rather than HTTPS.