开发者

Reason for duplicate keys on http post?

开发者 https://www.devze.com 2023-04-09 12:21 出处:网络
Reading about Http Post on Wikipedia it states that This is a format for encoding key-value pairs with possibly duplicate keys. Is this correct and if so what is the reasoning? Why would a client ever

Reading about Http Post on Wikipedia it states that This is a format for encoding key-value pairs with possibly duplicate keys. Is this correct and if so what is the reasoning? Why would a client ever post duplicate keys and 开发者_JS百科if a duplicate key is posted how is the correct corresponding value returned on server side?


To submit multiple values for the same thing.

In PHP, for example, you can name multiple input fields somedata[]. All values of the input boxes are then put in an array named somedata.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号