pycurl problem

pabloski pabloski at
Wed Apr 18 16:48:06 CEST 2007

Hi to all, I have a problem with a snippet of code that creates a Curl

the code is

c = pycurl.Curl()

c.key = keyCurrent
c.proxy = proxyCurrent
c.url = "" + lg + "/search?hl=" + lg + "&q=" + c.key +
"&meta=lr%3Dlang_" + lg + "&num=30"

c.setopt(pycurl.URL, c.url)
c.setopt(pycurl.PROXY, c.proxy)

the last two lines raise a TypeError

obviously proxyCurrent, lg and keyCurrent are parameters

I noted that if I define c.proxy and c.url as costants e.g. c.url =
" blah...." and c.proxy =
"" it works

However if I define them as described before pycurl raises the TypeError

More information about the Python-list mailing list