ot;msg",
you'd retrieve the Set-Cookie headers with something like:
cookies = msg.getallmatchigheaders("Set-Cookie")
Note that you may need to put the actual headers back together. This method
returns the raw lines, including continuation lines, as separate list
elem
h.putheader('Host', 'www.musi-cal.com')
h.endheaders()
reply, msg, hdrs = h.getreply()
In any case, make sure when you test your code you are communicating with a
web server that you know and that actually has the URL you are interested
in. As the webmast