June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -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

View file

@ -0,0 +1 @@
(! "curl https://sourceforge.net")

View file

@ -1,3 +1,4 @@
import httpclient
echo getContent "https://sourceforge.net"
var client = newHttpClient()
echo client.getContent("https://sourceforge.net")

View 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.

View file

@ -0,0 +1,2 @@
use WWW;
say get 'https://sourceforge.net/';

View file

@ -0,0 +1,2 @@
use HTTP::UserAgent;
say HTTP::UserAgent.new.get('https://sourceforge.net/').content;