Csharp/CSharp Tutorial/Network/HttpWebResponse — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 15:20, 26 мая 2010
To see the date on which a web site was last modified
<source lang="csharp">using System; using System.Net;
class MainClass {
public static void Main(string[] args) { HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.nfex.ru"); HttpWebResponse resp = (HttpWebResponse) req.GetResponse(); Console.WriteLine("Last modified: " + resp.LastModified); resp.Close(); }
}</source>