title: HttpWebRequest does not retrieve the url I have set for
body: <p>I am trying to download </p>
  
  <p>"<a href="https://www.google.com/search?sclient=psy-ab&amp;biw=1472&amp;bih=740&amp;espv=2&amp;tbm=vid&amp;btnG=Search&amp;q=%25%25%25#q=iran&amp;tbm=nws" rel="nofollow">https://www.google.com/search?sclient=psy-ab&amp;biw=1472&amp;bih=740&amp;espv=2&amp;tbm=vid&amp;btnG=Search&amp;q=%25%25%25#q=iran&amp;tbm=nws</a>";</p>
  
  <p>by the following code:</p>
  
  <pre><code>        string url = "https://www.google.com/search?sclient=psy-ab&amp;biw=1472&amp;bih=740&amp;espv=2&amp;tbm=vid&amp;btnG=Search&amp;q=%25%25%25#q=iran&amp;tbm=nws";
          try
          {
              string htmlPage = "";
  
              //http request preparing
              CookieContainer CC = new CookieContainer();
              HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
              objRequest.Timeout = 60000;
              objRequest.Proxy = null;
              objRequest.UseDefaultCredentials = true;
              objRequest.KeepAlive = false; //THIS DOES THE TRICK
              objRequest.ProtocolVersion = HttpVersion.Version10; // THIS DOES THE TRICK
              objRequest.CookieContainer = CC;
  
              //http request sending
              using (HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse())
              {
                  using (Stream strm = objResponse.GetResponseStream())
                  {
                      using (StreamReader objStreamReader = new StreamReader(strm))
                      {
                          htmlPage = objStreamReader.ReadToEnd();
                      }
                  }
              };
              if (htmlPage.Contains("No results found for") || htmlPage.Contains("(without quotes):") || htmlPage.Contains("Make sure all words are spelled correctly."))
              {
                  return dtResult;
              }
              else
              {
                  Regex objEgEx = new Regex(@"[\r\n][ ]+\.[\r\n][ ]+");
                  htmlPage = objEgEx.Replace(htmlPage, string.Empty);
  
                  int startIndex = htmlPage.IndexOf("&lt;div class =\"g\"&gt;");
                  if (startIndex == -1)
                  { Console.Write("problem in parsing"); }
  </code></pre>
  
  <p>but HttpWebRequest download the first page of the google instead of the url I hd saved for it which is the address of the video search service of Google results' page.
  what should I change so that it download the url I want?</p>