title: Unable to use external proxy in c# HttpWebRequest
body: <p>i am hitting this url:</p>
  
  <pre><code>http://www.google.co.uk/search?q=online stores uk&amp;hl=en&amp;cr=countryUK%7CcountryGB&amp;as_qdr=all&amp;tbs=ctr:countryUK
  </code></pre>
  
  <p>Basically i get the ppcUrls, it works perfect without any proxy.</p>
  
  <p>But when i try to use  a proxy which are available on the internet:</p>
  
  <pre><code>http://proxy-list.org/en/index.php?pp=3128&amp;pt=any&amp;pc=any&amp;ps=any&amp;submit=Filter+Proxy
  </code></pre>
  
  <p>The above link wont open in any way :|, i did check the ipz with the internet explorer and it opened , but here in HTTPWEBREQUEST , sometime i get <strong>503 Server unavailable</strong>, or Too <strong>Many redirections</strong> </p>
  
  <p>The link wont open with any ip . </p>
  
  <p>Any suggestion ? Below is my getting HTML function:</p>
  
  <pre><code>   public string getHtml(string url, string proxytmp)
      {
          string responseData = "";
          try
          {
  
  
              HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
              request.Accept = "*/*";
              request.AllowAutoRedirect = true;
              request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)";
              request.Timeout = 60000;
              request.Method = "GET";
  
              if (proxies.Count &gt; 0)
              {
                  try
                  {
                      int customIP = 0;
                      int port = 0;
                      string ip = string.Empty;
  
                      string[] splitter = proxytmp.Split(':');
                      if (splitter.Length &gt; 0)
                      {
  
                          ip = splitter[0].ToString();
                          port = Convert.ToInt32(splitter[1].ToString());
                      }
  
                      WebProxy proxy = new WebProxy(ip, port);
                      request.Proxy = proxy;
  
                  }
                  catch (Exception exp)
                  {
  
                  }
              }
  
              HttpWebResponse response = (HttpWebResponse)request.GetResponse();
              if (response.StatusCode == HttpStatusCode.OK)
              {
                  Stream responseStream = response.GetResponseStream();
                  StreamReader myStreamReader = new StreamReader(responseStream);
                  responseData = myStreamReader.ReadToEnd();
              }
              response.Close();
  
  
          }
            catch (System.Exception e)
          {
              responseData = e.ToString();
          }
  
          return responseData;
  
      }
  </code></pre>
  
  <blockquote>
    <p>UPDATE</p>
  </blockquote>
  
  <p>The Url opens when i use the same proxy with Internet explorer so there must be a way.But i cannot figure it out.</p>
  
  <p>Thank you</p>