- This topic has 1 reply, 1 voice, and was last updated 5 years, 3 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Hi Kim,
In the blog article “REST easy with kbmMW #15 – Handling HTTP POST” you describe in example 2 howto obtain url parameters. In the example the number of url parameters are fixed but in my situation the number of parameters may vary. Is there a way to obtain all url parameters as one string? I am looking something similair as in the http service where you can obtain url parameters with Args[2].
Thanks in advance!
Kind regards,
Luigi
Never mind I found the solution.
var
qv: TkbmMWHTTPQueryValues; // kbmMWHTTPUtils
hlp: TkbmMWHTTPTransportStreamHelper;
s: string;
begin
qv := TkbmMWHTTPQueryValues.Create;
try
hlp := TkbmMWHTTPTransportStreamHelper(RequestTransportStream.Helper);
qv.AsString := hlp.Query; // Contains the part after the ?
s := qv.ValueByName[‘test’];
…