Hi,
I am trying to retrieve the source code of a particular url, but it
seems that I am doing something wrong.
HttpWebRequest webRequest;
HttpWebResponse webResponse;
StreamReader reader;
string text="";
int pos=-1;
webRequest = (HttpWebRequest) WebRequest.Create(data);
webResponse = (HttpWebResponse) webRequest.GetResponse();
reader = new StreamReader(webResponse.GetResponseStream(),
Encoding.ASCII);
text = reader.ReadToEnd();
pos = text.IndexOf(" out of 5 stars", 0);
The variable data containds a URL address such as the following-
http://www.amazon.com/exec/obidos/AS...6link_code=sp1
When I enter in the link manually, enter in View Source and make a
search for " out of 5 stars", the data is found, but when I do it
within the code, that string is not found.
Can someone give me some help.
Thanks in Advance