title: Increase maximum redirects allowed in RCurl
body: <p>I am trying to write a script that takes a list of URLs and returns a vector specifying whether each website is up or not (TRUE or FALSE).</p>
  
  <p>The problem is that the <code>url.exists()</code> function from the RCurl package returns an error (i.e. FALSE) for redirect status codes in the 300 range, which are not really errors (at least the sort I am concerned with). This problem was identified in <a href="https://stackoverflow.com/questions/15343560/rcurlurl-exists-how-to-get-non-error-for-redirects-in-the-300-range-of-ht">another question</a>.</p>
  
  <p>To address this problem, I am using the <code>url_success</code> function from the httr package.</p>
  
  <p>However, this produces another error when I run it on certain websites, for example:</p>
  
  <p><code>&gt; url_success(site_list[621])</code></p>
  
  <p><code>Error in function (type, msg, asError = TRUE)  :</code></p>
  
  <p><code>Maximum (10) redirects followed</code></p>
  
  <p>Is there a way to change the maximum redirects allowed by RCurl?</p>
  
  <p>Or is there an alternative way to approach my problem in general here?</p>