Wednesday, October 10, 2012

Get Dependent files from HTML response


I am getting response of a page like :

System.Net.HttpWebRequest  request  ...


request.Method = ...

request.UserAgent =..


receiveStream = response.GetResponseStream();

readStream = new StreamReader(receiveStream, Encoding.UTF8);

string pageContent = readStream.ReadToEnd();

Now out of this string pageContent    , I want to extract all sub request and make them a hit.   Is there something better than html agility pack for this ?

Reply 1 By

I usually read it into an htmlDocument Class and the use either GetElementByID or GetElementsByTagname()




string pageContent;





Reply 2 

You should try

I am searching something better dear.

No comments:

Post a Comment