Calculate URL Size

I need to calculate the size of a page when I enter its URL. The size should include the total size with the images, css and scripts.
I don't have a clue how to begin.
Thanks
[191 byte] By [Nikon_84] at [2007-12-16]
# 1
You have a -lot- of work ahead of you.

You must familiarize yourself with System.Net.HttpWebRequest (or TcpClient if you're hard-core), then you probably want to familiarzie yourself with basic HTTP ("HEAD" requests, in particular), and then you must write an HTML parser to pick out all the linked images, css files, scripts, etc. You also need a CSS parser to pick out linked images in there, and a script parser to see if any of the javascript files download data themselves.

-Ryan / Kardax

RyanLamansky at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Thanks that helped. I can get the main HTML size and the source for the HTML page but don't realy know how to go further.
Dawid
Nikon_84 at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified