Retrieve a web page content, but at a specific position

Posted on 2005-05-02
Last Modified: 2010-04-16

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!
Question by:pmengal
    1 Comment
    LVL 37

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now