title: Too many HTTP redirects
body: <p>The problem doesn't happen all the time. The error i'm getting is the following,</p>
  
  <pre><code>Error Domain=NSURLErrorDomain Code=-1007 "too many HTTP redirects"
  UserInfo=0x14d18d40{NSErrorFailingURLStringKey=URLHERE,
  NSErrorFailingURLKey=URLHERE,NSLocalizedDescription=too many HTTP redirects,  
  NSUnderlyingError=0x14d18a10 "too many HTTP redirects"}
  </code></pre>
  
  <p>Could someone possibly give me an idea on what do here and point me in the right direction?</p>
  
  <p>Okay basically what i'm trying to do is when the doPortal is called, it loads up the Portal page with the URL. However when i do this, it shows the error about too many HTTP redirects.</p>
  
  <p>Code:</p>
  
  <pre><code> -(void)doPortal
  {
      [ViewController SetRioSubjectName:[[ViewController getDictionaryOfKeys] objectForKey:[ViewController GetKeyName:k_SubjectName]] role:[ViewController getRoleID] ticket:[SpineMgr getTicket] TestURL:@"TestURL/login/testloginverifydetails.asp?database=LIVE&amp;username=$spineuuid$&amp;smartcardToken=$token$&amp;role=$role$"];
      NSURL *url = [NSURL URLWithString:PortalURL];
      [self.webView loadRequest:request];
  }
  </code></pre>
  
  <p>Thanks in advance.</p>