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

Use IO::Socket::SSL #67

Open
azawawi opened this issue Mar 25, 2015 · 0 comments
Open

Use IO::Socket::SSL #67

azawawi opened this issue Mar 25, 2015 · 0 comments
Labels

Comments

@azawawi
Copy link
Owner

azawawi commented Mar 25, 2015

IO::Socket::SSL now works on linux and win32. We should use that for github operations

See https://github.com/sergot/io-socket-ssl/blob/master/test.p6

use v6;

# Display https://raw.githubusercontent.com/azawawi/farabi6/master/README.md
use IO::Socket::SSL;
my $ssl = IO::Socket::SSL.new(:host<raw.githubusercontent.com>, :port(443));
my $content;
$ssl.send("GET /azawawi/farabi6/master/README.md HTTP/1.1\r\nHost: raw.githubusercontent.com\r\n\r\n");
while my $read = $ssl.recv {
    $content ~= $read;
}
say $content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant