title: Too many automatic redirections were attempted (even CookieContainer fail)
body: <p>c# code:</p>
  
  <pre><code>ASCIIEncoding encoding = new ASCIIEncoding();
  CookieContainer cook = new CookieContainer();
  byte[] data = encoding.GetBytes(postData);
  HttpWebRequest myRequest =(HttpWebRequest)WebRequest.Create("http://website.com/index.php");
  myRequest.Method = "POST";
  myRequest.ContentType = "application/x-www-form-urlencoded";
  //myRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
  myRequest.ContentLength = data.Length;
  Stream newStream = myRequest.GetRequestStream();
  newStream.Write(data, 0, data.Length);
  newStream.Close();
  //myRequest.AllowAutoRedirect = false;
  myRequest.CookieContainer = new CookieContainer();
  WebResponse response = myRequest.GetResponse();
  Console.WriteLine(((HttpWebResponse)response).StatusDescription);
  newStream = response.GetResponseStream();
  StreamReader reader = new StreamReader(newStream);
  Console.WriteLine(reader.ReadToEnd());
  </code></pre>
  
  <p>index.php</p>
  
  <pre><code>$num= $_POST["num"]; 
  echo $num;
  </code></pre>
  
  <p>the above code work for me before but suddenly it fail. I tried everything
  adding <code>CookieContainer()</code>, setting Redirection to false, using other code for httprequest.</p>
  
  <p>If I <code>AllowAutoRedirect</code> set to false the result would be:</p>
  
  <hr>
  
  <p>302 Found</p>
  
  <p>Found
  The document has moved here</p>
  
  <hr>
  
  <p>But when i tried this to other web-hosting server it works. So i was thinking its on my WHM/cPanel? Also i have already white-listed my Ip. Already check .htaccess and the options in my cpanelb(redirection).</p>
  
  <p>So any ideas what might cause this?</p>
  
  <p><em>note: i have already disable'd cloud flare protection</em></p>