What's the term for the part of the URL after

2019-01-16 16:08发布

http://www.example.com?foo

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

5条回答
Root(大扎)
2楼-- · 2019-01-16 16:48

It's called "query string" as you can see in wikipedia.

查看更多
迷人小祖宗
4楼-- · 2019-01-16 16:51

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.

查看更多
叼着烟拽天下
5楼-- · 2019-01-16 17:05

Its the query, or sometimes the query string.

To pinch a useful diagram from the URI RFC:

     foo://example.com:8042/over/there?name=ferret#nose
     \_/   \______________/\_________/ \_________/ \__/
      |           |            |            |        |
   scheme     authority       path        query   fragment
查看更多
何必那么认真
6楼-- · 2019-01-16 17:10

The 'foo' only is called String Parameters of the URL Query

查看更多
登录 后发表回答