http://www.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
field=value
. Check this[en.wikipedia.org/wiki/Query_string]
?foo=bar&baz=qux
but nothing forces you to do that and the query can pretty much be any text (except it can't contain a #
). So yes, it's possible. http://example.com/????? is a valid URL for example.
Oct 2, 2021 at 7:20
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]