18 lines
312 B
Text
18 lines
312 B
Text
|
|
using System;
|
||
|
|
using System.Console;
|
||
|
|
using System.Net;
|
||
|
|
using System.IO;
|
||
|
|
|
||
|
|
module HTTP
|
||
|
|
{
|
||
|
|
Main() : void
|
||
|
|
{
|
||
|
|
def wc = WebClient();
|
||
|
|
def myStream = wc.OpenRead("http://rosettacode.org");
|
||
|
|
def sr = StreamReader(myStream);
|
||
|
|
|
||
|
|
WriteLine(sr.ReadToEnd());
|
||
|
|
myStream.Close()
|
||
|
|
}
|
||
|
|
}
|