June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -5,4 +5,4 @@ import qualified Data.ByteString.Lazy as L
|
|||
import Network (withSocketsDo)
|
||||
|
||||
main = withSocketsDo
|
||||
$ simpleHttp "https://sourceforge.net/" >>= L.putStr
|
||||
$ simpleHttp "https://sourceforge.net/" >>= L.putStr
|
||||
|
|
|
|||
1
Task/HTTPS/NewLISP/https.newlisp
Normal file
1
Task/HTTPS/NewLISP/https.newlisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
(! "curl https://sourceforge.net")
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
import httpclient
|
||||
|
||||
echo getContent "https://sourceforge.net"
|
||||
var client = newHttpClient()
|
||||
echo client.getContent("https://sourceforge.net")
|
||||
|
|
|
|||
16
Task/HTTPS/Pascal/https.pascal
Normal file
16
Task/HTTPS/Pascal/https.pascal
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{$mode objfpc}{$H+}
|
||||
uses fphttpclient;
|
||||
|
||||
var
|
||||
s: string;
|
||||
hc: tfphttpclient;
|
||||
|
||||
begin
|
||||
hc := tfphttpclient.create(nil);
|
||||
try
|
||||
s := hc.get('https://www.example.com')
|
||||
finally
|
||||
hc.free
|
||||
end;
|
||||
writeln(s)
|
||||
end.
|
||||
2
Task/HTTPS/Perl-6/https-1.pl6
Normal file
2
Task/HTTPS/Perl-6/https-1.pl6
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
use WWW;
|
||||
say get 'https://sourceforge.net/';
|
||||
2
Task/HTTPS/Perl-6/https-2.pl6
Normal file
2
Task/HTTPS/Perl-6/https-2.pl6
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
use HTTP::UserAgent;
|
||||
say HTTP::UserAgent.new.get('https://sourceforge.net/').content;
|
||||
Loading…
Add table
Add a link
Reference in a new issue