how to send token to url in c# windows application
<p>using <code>System.Net.WebClient</code> and <code>DownloadString</code> the URL contents gives me a token. the server uses this token as "<a href="https://address/page?token=AAABBBXXX" rel="nofollow">https://address/page?token=AAABBBXXX</a>".
by using this code</p>

<pre><code>string contents;
string token;
string url = @"https://address/login";
var wc = new System.Net.WebClient();
contents = wc.DownloadString(url);
token = contents.Substring(contents.IndexOf("page.public.pageToken = '") + "page.public.pageToken = '".Length, 32);
url = "https://address/page?token=" + token;
**contents = wc.DownloadString(url);** //error error error !!!!
</code></pre>

<p>I can get token value from page content but how to send this token and validate my request? last line causes server error timeout! shall I save token value in any session? how do it in windows application?</p>