Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

can't use multiple HTTP Headers with the same name #130

Open
cythrawll opened this Issue · 1 comment

2 participants

@cythrawll

In HTTP it allows multiple headers with the same name. However, when I went to test
webapp that seems to break when IE10 sends multiple cookie headers, I can't use httpie to test it as it only puts in the last header value in the request.

example:

input: http -v example.org Cookie:foo1=bar1 User-Agent:BAM\1.0 Cookie:foo2=bar2

==actual output==
GET / HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate, compress
Cookie: foo2=bar2
Host: example.org
User-Agent: BAM1.0

//response omitted

==expected output==
GET / HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate, compress
Cookie: foo1=bar1
Cookie: foo2=bar2
Host: example.org
User-Agent: BAM1.0

Really http headers should be represented as a case insensitive MultiMap of some sort, not a Dict.

@jkbrzt
Owner

This first needs to be allowed by Python-Requests: #1155 Add MultiDict Support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.