%% Write Form-Encoded Character Data
% This example shows how to write data to a Web server.

httpUrl  = 'http://requestserver.mathworks.com';
delim = '&';
pairDelim = '=';
data = 42;
data = num2str(data);
data = ['key', pairDelim, 'value', delim, 'field', pairDelim, data];
responseData = webwrite(httpUrl, data);
disp(responseData);

% Copyright 2020 The MathWorks, Inc.