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

2019-01-07 06:50发布

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 anecdotal evidence won't cut it.

8条回答
男人必须洒脱
2楼-- · 2019-01-07 07:54

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.

查看更多
登录 后发表回答