Handle multiple cookies with httplib

S

Shagshag

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top