How can I accept cookies in a python script?
I believe you mean having a Python script that tries to speak HTTP.
I suggest you to use a high-level library that handles cookies automatically.
pycurl, mechanize, twill - you choose.
For Nikhil Chelliah:
I don't see what's not clear here.
Accepting a cookie happens client-side. The server can set a cookie.
Accept Cookies in Python