I'd like to send form data from ZAF client using proxy.
I want to do like this.
curl -X POST "https://external.server/" -H "X-API-Key: ..." -H "Content-Type: application/x-www-form-urlencoded" -d 'test=1234'
but, if I do the following code, the parameter was converted to query string.
var options = {
url: "https://external.server/",
method: 'POST',
secure: true,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-API-Key': '{{setting.api_key}}'
},
data: "test=1234"
};
client.request(options);
The actual network request on browser had weird parameter.
POST https://mydomain.zendesk.com/proxy/v2/apps/secure/https://external.server/?0=t&1=e&2=s&3=t&4==&5=1&6=2&7=3&8=4
How is it possible?

