Using duplicate parameters in a URL

后端 未结 5 1821

We are building an API in-house and often are passing a parameter with multiple values.

They use: mysite.com?id=1&id=2&id=3

Instead of: mysite.com?id

5条回答
  •  时光取名叫无心
    2020-12-20 12:21

    in your first approach you will get an array of querystring values but in second approach you will get a string of querystring values.

提交回复
热议问题