mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-05 20:42:26 +00:00
Initial commit for opium
This commit is contained in:
parent
6686997ed2
commit
69a133eec1
7 changed files with 51 additions and 772 deletions
5
http.Mod
5
http.Mod
|
|
@ -1,5 +1,5 @@
|
|||
MODULE http;
|
||||
IMPORT Internet, Out;
|
||||
IMPORT Internet, Logger;
|
||||
VAR
|
||||
buff: ARRAY 1000 OF CHAR;
|
||||
PROCEDURE get(host, port: ARRAY OF CHAR; VAR buff: ARRAY OF CHAR);
|
||||
|
|
@ -24,6 +24,5 @@ END get;
|
|||
|
||||
BEGIN
|
||||
get("voto.am", "80", buff);
|
||||
Out.String(buff);
|
||||
Out.Ln;
|
||||
Logger.Log(buff);
|
||||
END http.
|
||||
Loading…
Add table
Add a link
Reference in a new issue