cFormUrlEncode function
Converts a map to a URL-encoded string.
Content-Type: 'application/x-www-form-urlencoded'
Implementation
String cFormUrlEncode(Map<String, String> data) {
var st = '';
data.forEach((key, value) {
st += (st != '') ? '&$key=$value' : '$key=$value';
return;
});
return st;
}