Hello,
Simple solution that people don't really tell you.
Here is the code to do a web request:
public static class WebConnection
{
public static string GetResponce(string url)
{
string data = "";
try
{
WebRequest request = WebRequest.Create(url);
request.Proxy = null;
request.Credentials = CredentialCache.DefaultCredentials;
WebResponse response = request.GetResponse();
Console.WriteLine(((HttpWebResponse)response).StatusDescription);
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
data = reader.ReadToEnd();
reader.Close();
response.Close();
}
catch
{ }
return data;
}
}
And it works like a charm.
Then what you do is call it:
string responce = WebConnection.GetResponce("myuri");
int i = 0;
So create a breakpoint on the int i = 0; and run the app.
The app will break, hover over the variable responce and click the magnifying glass, copy any text into a notepad text document.
Now using string manipulation, manipulate the requested string into the required string.
Good luck!