What's the term for the part of the URL after the question mark?

后端 未结 5 1763
我寻月下人不归
我寻月下人不归 2020-12-07 20:48

http://www.example.com?foo

What\'s the term for the foo part of the URL?

5条回答
  •  一个人的身影
    2020-12-07 21:00

    Depends on the technology you use. Usually its called name value pair. Query string refers to the whole string after ? sign. Then depending on technology used that query string is parsed and normally appears as the dictionary. For example, http://www.example.com?foo=bar&foo1=bar1: Request["foo"] yields "bar" Request["foo1"] yields "bar1" for asp or $_GET["foo"] -> "bar" for php and so on.

提交回复
热议问题