Mercurial > hg > Members > nobuyasu > konoha
view http/test/urlTest.k @ 15:44e3247ed7c1 draft
modify include to using
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 May 2012 17:01:39 +0900 |
parents | 0335cdd081d0 |
children |
line wrap: on
line source
using url.*; void main(String[] args) { String url = "http://ie.u-ryukyu.ac.jp/~kono/lecture/index.html"; print url; URL u; try { u = new URL(url); } catch(Script!! e) { OUT << "catch Script!!" <<< EOL; OUT << e << EOL; System.exit(0); } print u.getURL(); print u.getHost(); print u.getUri(); }