Is a url query parameter valid if it has no value?

前端 未结 8 1183
滥情空心
滥情空心 2020-11-28 05:41

Is a url like http://example.com/foo?bar valid?

I\'m looking for a link to something official that says one way or the other. A simple yes/no answer or

8条回答
  •  失恋的感觉
    2020-11-28 05:44

    They're perfectly valid. You could consider them to be the equivalent of the big muscled guy standing silently behind the mob messenger. The guy doesn't have a name and doesn't speak, but his mere presence conveys information.

提交回复
热议问题