New line in Meteor HTTP POST -


what correct way insert new line in meteor.http post call?

here's do:

var result = http.call("post", url, {                 params: {                   field: value                 },                 headers:{                     "[header field]":"[header value]"                 }             }); 

i want value in case multiple strings separated new lines. have tried:

value = "firstitem" + "%0a" + seconditem + "%0a" + thirditem 

the api using expects value different items, each on new line. when post request, api consumes string , doesn't identify items separate inputs. thoughts?

a post request has it's parameters separated & if you're using application/x-www-form-urlencoded:

parameter=value&also=another 

that being said, if use application/x-www-form-urlencoded, w3c spec states "%0d%0a" new line can try too.

https://www.w3.org/markup/html-spec/html-spec_8.html#sec8.2.1


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -