What does the symbol ? mean in a URL?
Asked
Active
Viewed 1.5k times
2 Answers
11
That portion of the URL (ie. after the ?
) is known as the query string.
http://en.wikipedia.org/wiki/Query_string
It is used to pass parameters into web applications.
For example, in ASP.NET I might have an .aspx
page like so:
http://example.com/myapp/default.aspx
Inside my codebehind for that page I can look for the presence of any query string parameters:
string paramValue = Request.QueryString["param"];
So if someone visits my page with the URL of http://example.com/myapp/default.aspx?param=abcd
Then the value of paramValue
will be "abcd".

Coxy
- 8,844
- 4
- 39
- 62
-
I love the example as one +1 for being you buddy! – Steven Hammons Mar 15 '11 at 05:11
9
RFC for http protocol, section 3.2.2 http URL
"?" - is delimiter between "absolute path" and "query"

Bruno Bieri
- 9,724
- 11
- 63
- 92

CyberDem0n
- 14,545
- 1
- 34
- 24