Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Explicit content-type: multipart/form-data leads to unexpected content-disposition:attachment in the http body #5256
I did this
curl -X POST -F 'name=foo' -H 'Content-type: multipart/form-data; charset=utf-8' third_party_url
I expected the following
The problem was I am using the above command to send an HTTP request to a third-party. Things work fine until I upgraded curl to the latest version.
while in version 7.6x, it was
If I omit the
This problem happens in my AWS EC2 instance but since I can reproduce it in my local machine, I do think it is related to 7.6x version
Are you really talking about curl 7.6, released in January 2001?
I'm reading this several times but it's not clear to me: are you saying you think it should be
For all I can see, the specs are not very clear either way on this.
Shouldn't it be