Following the nice answer on stackoverflow to this question of when to use one or the other content-types for POSTing data, viz. application/x-www-form-urlencoded
and multipart/form-data
,
“The moral of the story is, if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use
multipart/form-data
. Otherwise, useapplication/x-www-form-urlencoded
.”
The full version of Matt Bridges' answer: