protected void Page_Load(object sender, EventArgs e) { OAuthRequest request = OAuthConsumerRequest.Create( new EndPoint(@"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20search.news%20where%20query%3D%22obama%22&format=xml"), _Default.yahooService); OAuthResponse response = request.GetResource(); if (response.HasProtectedResource) { using (StreamReader reader = new StreamReader(response.ProtectedResource.GetResponseStream())) { YQLDisplay.DocumentContent = reader.ReadToEnd(); } } }