Reputation: 6756
ok i am facing a really strange problem with the twitter client of mine.
The code i am using for getting twitter timeline is
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(resource_url);
request.Headers.Add("Authorization", authHeader);
request.Method = "GET";
request.ContentType = "application/x-www-form-urlencoded";
WebResponse response = request.GetResponse();
StreamReader read = new StreamReader(response.GetResponseStream());
string read_string = read.ReadToEnd();
read.Close();
The thing is i can call this code any number of times and i get a response. I also use another code to send status messages to twitter. However whenever i send a message for the 2nd time to twitter and then call this code the WebResponse just freezes. No error code it just freezes.
Initially i suspected that i might had something to do with the shared variable with the write code so i seprated them. But still it was to no avail.
Guyz need urgent help on this one, have been trying to solve this for hours but its no use. I can post whole code if required.
Thank you.
Upvotes: 1
Views: 237