Re: [Dev] Correct formats of x-www-form-urlencoded

2018-01-09 Thread Keerthika Mahendralingam
Hi Vijitha, What if the backend expects the x-www-form-urlencoded type payload? In that case, we can't use multipart/form-data. Thanks, Keerthika. On Thu, Jan 4, 2018 at 1:18 PM, Vijitha Ekanayake wrote: > Hi Senduran, > > AFAIK, There is no standard documentation on how to convert JSON to > x

Re: [Dev] Correct formats of x-www-form-urlencoded

2018-01-03 Thread Vijitha Ekanayake
Hi Senduran, AFAIK, There is no standard documentation on how to convert JSON to x-www-form-urlencoded format as key-value pairs. As mentioned by Thusitha, When the JSON is getting complicated converting it to the x-www-form-urlencoded will also become complicated and may lead to inconsistencies o

Re: [Dev] Correct formats of x-www-form-urlencoded

2018-01-03 Thread Thusitha Thilina Dayaratne
Hi Senduran, IMHO x-www-form-urlencodedis for simple key value pairs. When the payload is complicated, we should use multipart/form-data instead of x-www-form-urlencoded content type. It can handle any complex complex scenarios that you mentioned. Thanks Thusitha On Wed, Jan 3, 2018 at 4:50 PM,

[Dev] Correct formats of x-www-form-urlencoded

2018-01-03 Thread Senduran Balasubramaniyam
Hi all, When an XML or a JSON is converted to x-www-form-urlencoded format the key value pair is created. i.e value1 value2 will be converted to key1=value&key2=value2 similarly {"key1" : "value1", "key2" : "value2"} also get converted to key1=value&key2=value2 But what if the XML or J