Link to home
Start Free TrialLog in
Avatar of pmengal
pmengal

asked on

Retrieve a web page content, but at a specific position

Hi,

I know a lot of methods to retrieve a web page using HttpRequest and .NET classes like that. It work very well to retrieve the whole page.

However, I want to be able to retrieve only a part of the page.

For exemple if you want to retrieve only a part of the file, you do a Seek, here is an exemple that retrieve the file content at position 100 (byte):

StreamReader reader = new StreamReader(filename, System.Text.Encoding.Default);
reader.BaseStream.Seek(100, System.IO.SeekOrigin.Begin);

How to achieve this for a web request ? I know it's possible, but how ?

Thanks a lot!
ASKER CERTIFIED SOLUTION
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial