18 lines
311 B
Text
18 lines
311 B
Text
|
|
using System;
|
||
|
|
using System.Console;
|
||
|
|
using System.Net;
|
||
|
|
using System.IO;
|
||
|
|
|
||
|
|
module HTTP
|
||
|
|
{
|
||
|
|
Main() : void
|
||
|
|
{
|
||
|
|
def wc = WebClient();
|
||
|
|
def myStream = wc.OpenRead(https://sourceforge.com);
|
||
|
|
def sr = StreamReader(myStream);
|
||
|
|
|
||
|
|
WriteLine(sr.ReadToEnd());
|
||
|
|
myStream.Close()
|
||
|
|
}
|
||
|
|
}
|