//usr/share/doc/python-pycurl-7.19.0/tests/

OS : Linux

PHP Version : 7.4.33

Software : Apache/2.4.6 (CentOS) PHP/7.4.33

Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64

Disable Function : #! /usr/bin/env python # -*- coding: iso-8859-1 -*- # vi:ts=4:et # $Id: test_stringio.py,v 1.6 2003/04/21 18:46:11 mfx Exp $ import sys try: from cStringIO import StringIO except ImportError: from StringIO import StringIO import pycurl url = "http://curl.haxx.se/dev/" print "Testing", pycurl.version body = StringIO() c = pycurl.Curl() c.setopt(c.URL, url) c.setopt(c.WRITEFUNCTION, body.write) c.perform() c.close() contents = body.getvalue() print contents