c# HttpWebRequest get error 500 but in browsers is correct
<p>when i use this code i get error 500</p>

<p>this url when send on respoce redirect to another url</p>

<p>but on redirect request type is Post</p>

<pre><code>WebRequest req = HttpWebRequest.Create("http://www.khanoumi.com/brandproductlist/allajax?id=204");
req.Method = "GET";
string response = "";
using (StreamReader sr = new StreamReader(req.GetResponse().GetResponseStream()))
{
    response = sr.ReadToEnd();
}
</code></pre>

<p>but when i open this url in browser it is correct</p>