I have this code:
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(someUrl);
request.Accept = "*/*";///////////
request.CookieContainer = cookies;
request.Method = sendVerb;
request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Reload);
request.AllowAutoRedirect = false;
request.KeepAlive = true;
When I'm in GET mode, in this line, the program crashes:
using (HttpWebResponse responseData = (HttpWebResponse)request.GetResponse())
The information in the catch block says:
The remote server returned an error: (403) Forbidden.