By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,310 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

Handle multiple cookies with httplib

P: n/a
hello,

how can i set multiple cookies like :

Set-Cookie: cookiename1=value1; expires=Tue, 31-Mar-09 11:17:43 GMT;
path=/; domain=www.domain.com
Set-Cookie: cookiename2=value2; expires=Tue, 31-Mar-09 11:17:43 GMT;
path=/; domain=www.domain.com

to a httplib.HTTPConnection ?

i used to do :

connection = httplib.HTTPConnection(host)
connection.putrequest('GET', pathn)
connection.putheader('Cookie', cookie)

also is there any way to view 'connection' in a readable format to
understand how it is build after using many 'putheader' ?

regards
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.