I am trying to do a http request and getting a 403 error can someone please help as whats that I am missing. I have tried giving permission to everyone on the target site but of no use.
HttpWebRequest request = WebRequest.Create("http://localhost/telligent_community/api.ashx/v2/users/2") as HttpWebRequest;
using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
{
var reader = new StreamReader(webResponse.GetResponseStream());
Console.WriteLine(reader.ReadToEnd());
}
...
Go to the complete details ...