Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/hc_python/share/doc/pycurl/examples/quickstart/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/hc_python/share/doc/pycurl/examples/quickstart/file_upload_buffer.py

#! /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()

Hacked By AnonymousFox1.0, Coded By AnonymousFox