MultipartBody.appendQuotedString

Appends a quoted-string to a StringBuilder.

<p>RFC 2388 is rather vague about how one should escape special characters in form-data parameters, and as it turns out Firefox and Chrome actually do rather different things, and both say in their comments that they're not really sure what the right approach is. We go with Chrome's behavior (which also experimentally seems to match what IE does), but if you actually want to have a good chance of things working, please avoid double-quotes, newlines, percent signs, and the like in your field names.

class MultipartBody
static
void
appendQuotedString
(
StringBuilder target
,
string key
)

Meta