aacerox / node-rest-client

REST API client from node.js
MIT License
377 stars 132 forks source link

Support for URL encoded POST data #128

Closed gabeosx closed 7 years ago

gabeosx commented 8 years ago

It would be useful to have functionality to be able to optionally encode POST data as application/x-www-form-urlencoded, for services that expect form data, rather than JSON.

For example

data {
arg1: 'value',
arg2: 'value'
}

becomes arg1=value&arg2=value

aacerox commented 7 years ago

this is available since version 3.0 through URL-ENCODED serializer.

Please give it a try and let me know if it works.

thnx