How do I manually add more cookies to a session which already has cookies set in mechanize?

I have a python script which scrapes a page and receives a cookie. I want to append another cookie to the existing cookies that are being send to the server. So that on the next request I have the cookies from the original page plus ones I set manually.

Anyway of doing this? I tried addheaders in mechanize but it was ignored.

5
задан Joe Schmoe 29 August 2010 в 22:21
поделиться