I assume the term metadata refers to the Headers information, if so then following code will help you to start,
namespace ConsoleApplication24
{
using System;
using System.Net;
class Program
{
static void Main(string[] args)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.Codeproject.com");
request.Method = "GET";
IWebProxy proxy = WebRequest.GetSystemWebProxy();
proxy.Credentials = CredentialCache.DefaultCredentials;
request.Proxy = proxy;
using (WebResponse response = request.GetResponse())
{
WebHeaderCollection collection = response.Headers;
Array.ForEach(collection.AllKeys,
key =>
{
Console.WriteLine("{0,20}:{1}", key, string.Concat(collection.GetValues(key)));
});
}
}
}
}
This code will produce following output,
Proxy-Connection:Keep-Alive
Connection:Keep-Alive
Content-Length:94210
Cache-Control:private
Content-Type:text/html; charset=utf-8
Date:Sun, 06 May 2012 03:40:03 GMT
Set-Cookie:SessionGUID=f20a2597-70c8-4a1a-97b9-718fc0c108d9; path=/mgu
id=39d8dd1e-4189-44d6-9738-9cb90c7dade9; domain=.codeproject.com; expires=Tue05-
May-2037 04:00:00 GMT; path=/SessionGUID=f20a2597-70c8-4a1a-97b9-718fc0c108d9; p
ath=/mguid=39d8dd1e-4189-44d6-9738-9cb90c7dade9; domain=.codeproject.com; expire
s=Tue05-May-2037 04:00:00 GMT; path=/
Age:2
Press any key to continue . . .
Or if we want to get meta tag please have a look,
C# Parse Meta Tags[
^]
Hope it helps a bit :)