📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 17:36:59
📂
/ (Root)
/
opt
/
hc_python
/
share
/
doc
/
pycurl
/
examples
/
quickstart
📍 /opt/hc_python/share/doc/pycurl/examples/quickstart
🔄 Refresh
✏️
Editing: write_file.py
Read Only
#! /usr/bin/env python # -*- coding: utf-8 -*- # vi:ts=4:et import pycurl # As long as the file is opened in binary mode, both Python 2 and Python 3 # can write response body to it without decoding. with open('out.html', 'wb') as f: c = pycurl.Curl() c.setopt(c.URL, 'http://pycurl.io/') c.setopt(c.WRITEDATA, f) c.perform() c.close()
💾 Save Changes
❌ Cancel