Ford-p
Active member
- Joined
- Mar 1, 2007
- Messages
- 30
- Programming Experience
- Beginner
Hey,
I'm trying to get the size (KB) of web pages so I can add a percentage bar to my application.
The following ONLY works for binary as far as I can see:
Any help on making this work for text would be much appreciated,
Joe
I'm trying to get the size (KB) of web pages so I can add a percentage bar to my application.
The following ONLY works for binary as far as I can see:
VB.NET:
Public Function Size(ByVal strURL As String) As String
Dim objRequest As WebRequest = WebRequest.Create(strURL)
Dim objResponse As WebResponse = objRequest.GetResponse
Return objResponse.ContentLength.ToString
End Function
Any help on making this work for text would be much appreciated,
Joe