A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
12
Task/HTTP/Scala/http.scala
Normal file
12
Task/HTTP/Scala/http.scala
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import scala.io._
|
||||
|
||||
object HttpTest {
|
||||
def main(args: Array[String]): Unit = {
|
||||
//if you are behind a firewall you can configure your proxy
|
||||
System.setProperty("http.proxySet", "true")
|
||||
System.setProperty("http.proxyHost", "0.0.0.0")
|
||||
System.setProperty("http.proxyPort", "8080")
|
||||
|
||||
Source.fromURL("http://www.rosettacode.org").getLines.foreach(println)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue