git://git.onelab.eu
/
plcapi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ports > 254 accepted
[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()