python - Setting Cookie using pycurl, getting TypeError('invalid arguments to setopt',) -


i new python trying send session_id cookie using pycurl lib in python. below code line.

reportcurl.setopt(pycurl.cookie, session_id)  

where "session_id" string. not sure doing wrong working on python version 2.7.2 unable make run on python 2.7.3.

any idea invalid argument in setopt fuction?

appeciate help.

data application passes pycurl, such via setopt calls, must byte strings appropriately encoded.

make sure session_id in correct format.

http://pycurl.sourceforge.net/doc/unicode.html


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -