Re: Using the SSL module.
Chris Angelico <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAPTjJmphYJK4Yk5tviNrsy39uNQEzeJYrYYzq8qdu740RCe8xg@mail.gmail.com> |
On Mon, Jun 22, 2015 at 8:03 PM, Henrik Grubbström <[email protected]> wrote: >> int main() >> { >> Stdio.File sock = Stdio.File(); >> sock->connect("gideon.rosuav.com", 443); >> SSL.File ssl = SSL.File(sock, SSL.Context()); > > Note that with Pike 8.0 and later I believe that you need to also call > ssl->connect("gideon.rosuav.com") here. > >> ssl->write("GET / HTTP/1.0\r\n\r\n"); >> write("Response:\n%s\n", ssl->read(1024,1)); >> } Interesting. I just tried with and without that on 8.1.2ish (latest from git as of a few days ago), and it didn't fail, but it didn't change anything. Is that to do with the SNI extension? ChrisA