📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 18:58:22
📂
/ (Root)
/
opt
/
hc_python
/
share
/
doc
/
pycurl
/
examples
/
quickstart
📍 /opt/hc_python/share/doc/pycurl/examples/quickstart
🔄 Refresh
✏️
Editing: follow_redirect.py
Read Only
#! /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()
💾 Save Changes
❌ Cancel