Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS issues #12

Open
ghost opened this issue Mar 29, 2017 · 2 comments
Open

HTTPS issues #12

ghost opened this issue Mar 29, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2017

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.

@aguspiza
Copy link

Did you build with -d:ssl ?

@ghost
Copy link
Author

ghost commented Oct 27, 2019

@aguspiza I don't remember, it was more than 2 years ago :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant