Forum Discussion

philclaridge's avatar
13 years ago

How to do REST array (method?p=1&p=2&=3)

In jQuery and ASP.NET a simply array of parameters can be passed as repeating the same parameter value:

http://mymethod?p=1&p=2&p=3

In asp.net this can be received as 'int p[]', and an array of 3 integers is received.

How to send this rest request from SOAPUI? Does not seem to allow repeated parameters.

Phil

1 Reply

  • Hello,

    I know i post is old but i found the response :

    • Create a new ressource

    • Add parameter and check the option : "Disables Encoding" (ex : id)

    • Create a new request

    • When you fill the field's value u can write this "&id=...&id=...".


    With this method u can send a url like this : http://localhost/?id=1&id2&id=3 and get an array in the server side