Skip to content

Instantly share code, notes, and snippets.

@utgwkk
Created March 20, 2014 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utgwkk/9658988 to your computer and use it in GitHub Desktop.
Save utgwkk/9658988 to your computer and use it in GitHub Desktop.
import System.Net
import System.Text
import System.IO
url as string = 'https://www.google.co.jp/'
enc as Encoding = Encoding.GetEncoding('UTF-8')
req as WebRequest = WebRequest.Create(url)
res as WebResponse = req.GetResponse()
st as Stream = res.GetResponseStream()
sr as StreamReader = StreamReader(st, enc)
html as string = sr.ReadToEnd()
sr.Close()
st.Close()
print html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment