470,596 Members | 1,353 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

Handle multiple cookies with httplib

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
0 1566

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.