2011年8月9日火曜日

Values returned from System.Uri methods

URL = {Scheme}://{UserInfo}@{Host}:{Port}{LocalPath}{Query}{Fragment}

http://id:password@www.example.com:8080/profile/edit?name=Jack#123

  Uri.AbsolutePath = /profile/edit
  Uri.Fragment = #123
  Uri.Host = www.example.com
  Uri.LocalPath = /profile/edit
  Uri.Port = 8080
  Uri.Query = ?name=Jack
  Uri.Scheme = http
  Uri.UserInfo = id:password

http://www.example.com/

  Uri.AbsolutePath = /
  Uri.Fragment =
  Uri.Host = www.example.com
  Uri.LocalPath = /
  Uri.Port = 80
  Uri.Query =
  Uri.Scheme = http
  Uri.UserInfo =

http://www.example.com/

  Uri.AbsolutePath = /
  Uri.Fragment =
  Uri.Host = www.example.com
  Uri.LocalPath = /
  Uri.Port = 80
  Uri.Query =
  Uri.Scheme = http
  Uri.UserInfo =

System.Uri