4 //DNSResolver addServerAddress("128.105.2.10")
6 ip
:= Host clone setName("www.yahoo.com") address
8 socket
:= Socket clone setHost(ip
) setPort(80)
11 if (socket error
) then (
14 socket
write("GET /\n\n")
18 socket streamReadNextChunk
19 response
= response
.. (socket readBuffer
)
23 writeln("\nReceived ", response size
, " bytes")