mirando URLs con Powershell

(los comandos en negrita)


> $a = [URI]"http://wugsaju.blogspot.com/2006/11/tips-and-tricks.
> $a
AbsolutePath : /2006/11/tips-and-tricks.html
AbsoluteUri : http://wugsaju.blogspot.com/2006/11/tips-and-tricks.html
Authority : wugsaju.blogspot.com
Host : wugsaju.blogspot.com
HostNameType : Dns
IsDefaultPort : True
IsFile : False
IsLoopback : False
IsUnc : False
LocalPath : /2006/11/tips-and-tricks.html
PathAndQuery : /2006/11/tips-and-tricks.html
Port : 80
Query :
Fragment :
Scheme : http
OriginalString : http://wugsaju.blogspot.com/2006/11/tips-and-tricks.html
DnsSafeHost : wugsaju.blogspot.com
IsAbsoluteUri : True
Segments : {/, 2006/, 11/, tips-and-tricks.html}
UserEscaped : False
UserInfo :

> $a.Host
wugsaju.blogspot.com
> $a.get_port()
80

No hay comentarios.: