%% Create HTTP Query Parameters from Character Vector
% Create a character vector with two queries, this=that and one=2. The QueryParameter method splits qStr at the & character into two  QueryParameter objects.

qStr = '?this=that&one=2';
QPs = matlab.net.QueryParameter(qStr);

%
% The name=value pairs in qStr define the Name and Value properties.

name1 = QPs(1).Name
value1 = QPs(1).Value
name2 = QPs(2).Name
value2 = QPs(2).Value

% Copyright 2012 The MathWorks, Inc.