开发者

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

开发者 https://www.devze.com 2023-01-21 07:51 出处:网络
http://w开发者_如何转开发ww.example.com?foo What\'s the term for the foo part of the URL?It\'s the query, or sometimes the query string.

http://w开发者_如何转开发ww.example.com?foo

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


It's 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


It's called the "query string", as you can see on Wikipedia.


The query.

https://www.rfc-editor.org/rfc/rfc3986#section-3.4


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


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.


Here foo is query string,it is a part of the URL, and are therefore included if the user saves or sends the URL to another user.suppose you want to send some input data from url then we use this types of parameater.There are no limit of passing parameters according to RFC 2616. Syntax of Query String Request.QueryString(variable)[(index).count]

0

精彩评论

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