I am using urllib2 to interact with a website that sends back multiple Set-Cookie headers. However the response header dictionary only contains one - seems the duplicate keys are overriding each other.
Is there a way to access duplicate headers with urllib2?
set-cookie is different though. From RFC 6265:

Origin servers SHOULD NOT fold multiple Set-Cookie header fields into
     a single header field.  The usual mechanism for folding HTTP headers
     fields (i.e., as defined in [RFC2616]) might change the semantics of
     the Set-Cookie header field because the %x2C (",") character is used
     by Set-Cookie in a way that conflicts with such folding.

In theory then, this looks like a bug.
urllib2 multiple Set-Cookie headers in response