GNOME Bugzilla – Bug 641280
Multipart messages quoting
Last modified: 2011-04-22 11:10:35 UTC
Some servers require parameter names to be always quoted. It's not by RFC, but that happens. To reproduce you can try posting to http://fastpic.ru/uploadmulti following fields: submit => 1 check_thumb => size thumb_size => 170 uploading => 1 file[] => some image file server will respond 500 error.
I did additional research on this bug and found out that nginx server fails to recieve such requests.
*** Bug 645676 has been marked as a duplicate of this bug. ***
Created attachment 184811 [details] [review] Use quoted values in Content-Disposition headers. This fixes a Vimeo bug where its upload endpoint only accepts Content-Disposition values that are quoted. Even though RFC 2231 explicity says that servers should accept mix of quoted and unquoted values. http://vimeo.com/forums/topic:35969
Re-attached patch from bug 645676 here.
That patch wasn't quite right; the rfc2231 format requires special encoding and no quotes. I wrote my own patch (along with a few other related updates), added some regression tests, and just pushed it to git. It will be in libsoup 2.34.1. Thanks for the bug report / debugging / patches.