Python: PyCurl set URL exception
The problem is that it accepts strings, not unicode objects. Remove the u and unicode().
I try to set the url using this code c.setopt(pycurl.URL, link), but I get the following exception


File "/home/sultan/Repository/Django/monitor/app/thread/utils.py", line 164, in perform
    self.proxy_request.setopt(pycurl.URL, u'%s' % unicode(link))
TypeError: invalid arguments to setopt


What is wrong with my code?
Sultan