Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Retrieve a web page content, but at a specific position

Posted on 2005-05-02
1
Medium Priority
?
247 Views
Last Modified: 2010-04-16
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!
0
Comment
Question by:pmengal
1 Comment
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 2000 total points
ID: 13913767
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

578 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