📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-26 22:15:31
📂
/ (Root)
/
opt
/
hc_python
/
share
/
doc
/
pycurl
/
examples
/
quickstart
📍 /opt/hc_python/share/doc/pycurl/examples/quickstart
🔄 Refresh
✏️
Editing: file_upload_buffer.py
Read Only
#! /usr/bin/env python # -*- coding: utf-8 -*- # vi:ts=4:et import pycurl c = pycurl.Curl() c.setopt(c.URL, 'https://httpbin.org/post') c.setopt(c.HTTPPOST, [ ('fileupload', ( c.FORM_BUFFER, 'readme.txt', c.FORM_BUFFERPTR, 'This is a fancy readme file', )), ]) c.perform() c.close()
💾 Save Changes
❌ Cancel