Your IP : 3.144.15.34


Current Path : /opt/hc_python/share/doc/pycurl/examples/quickstart/
Upload File :
Current File : //opt/hc_python/share/doc/pycurl/examples/quickstart/follow_redirect.py

#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vi:ts=4:et

import pycurl

c = pycurl.Curl()
# Redirects to https://www.python.org/.
c.setopt(c.URL, 'http://www.python.org/')
# Follow redirect.
c.setopt(c.FOLLOWLOCATION, True)
c.perform()
c.close()

?>