title: libcurl how to stop redirecting when an url redirect to itself
body: <p>I use libcurl to get webpage's source code, everything goes all right until to get the source code of "www.macys.com". </p>
  
  <p>My programme gets nothing without CURLOPT_FOLLOWLOCATION option, but when with this option, the redirecting location is always '/' and the curl_easy_perform function will not return unless I set the CURLOPT_MAXREDIRS option.</p>
  
  <p>My question is how can I get this webpage's source code with libcurl ? 
  Thanks a lot.</p>
  
  <p>My libcurl version : 7.23.1,  OS: CentOS 6.0（final) x64</p>