[EMAIL PROTECTED] schrieb:
> More importantly, how do I do what you said and send the 'cookie'
> back??  From urlopen docs
> it looks like urlopen has an optional second 'data' parameter.  Perhaps
> I do this?..
> 
> response = urllib.urlopen("http://somedomain/path/to/file";,
> session=7c4a9c0ca9c7e231bcf7...) ??     

No, a cookie is not a request parameter. The data argument for urlopen is only
for POST data. A cookie is sent by setting a response header. Look at the
documentation for cookielib and urllib2 in the standard library to find out how
to send cookies:

http://python.org/doc/current/lib/module-cookielib.html
http://python.org/doc/current/lib/module-urllib2.html

Chris

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to