title: python pycurl get final url redirect
body: <p>i need visit website whit pycurl, follow redirects, and print final url, i write this python code :</p>
  
  <pre><code>c = pycurl.Curl()
  c.setopt(c.URL, 'http://localhost/redirect.php')
  c.setopt(c.HTTPPOST, values)
  c.setopt(c.WRITEFUNCTION, buf_pagina.write)
  c.setopt(c.HEADERFUNCTION, buf_header.write)
  c.setopt(c.CONNECTTIMEOUT, 30)
  c.setopt(c.AUTOREFERER,1)
  c.setopt(c.FOLLOWLOCATION, 1)
  c.setopt(c.COOKIEFILE, '')
  c.setopt(c.TIMEOUT, 30)
  c.setopt(c.USERAGENT, '')
  c.perform()
  </code></pre>
  
  <p>i need print the final url, how can i make this ? thanks.</p>
  
  <p>the solution is this : url_effective  = c.getinfo(c.EFFECTIVE_URL)</p>