set svn:keywords property for proper keywords expansion
[plcapi.git] / pycurl / tests / test_debug.py
1 #! /usr/bin/env python
2 # -*- coding: iso-8859-1 -*-
3 # vi:ts=4:et
4 # $Id$
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()