d3a6356e7a3b159db507a79db285b5e10e778e38
[plcapi.git] / pycurl / tests / test_debug.py
1 #! /usr/bin/env python
2 # -*- coding: iso-8859-1 -*-
3 # vi:ts=4:et
4 # $Id: test_debug.py,v 1.6 2003/04/21 18:46:10 mfx Exp $
5
6 import pycurl
7
8 def test(t, b):
9     print "debug(%d): %s" % (t, b)
10
11 c = pycurl.Curl()
12 c.setopt(pycurl.URL, 'http://curl.haxx.se/')
13 c.setopt(pycurl.VERBOSE, 1)
14 c.setopt(pycurl.DEBUGFUNCTION, test)
15 c.perform()
16 c.close()