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.
Comments
Post a Comment