HttpRequest Request [ "url" ], . HttpRequest :
public string this[string key]{ get; }
- , / , , .
HttpRequest , , , (Cookies, ServerVariables, QueryString, Form ..). - , Request , .
, , .NET 4.5:
public string this[string key]
{
get
{
string val = this.QueryString[key];
if (val != null)
return val;
val = this.Form[key];
if (val != null)
return str;
var cookie = this.Cookies[key];
if (cookie != null)
return cookie.Value;
val = this.ServerVariables[key];
if (val != null)
return val;
return null;
}
}
URL POST GET , . , .net?
"url" POST GET, QueryString, , . HttpRequest (Cookies, QueryStrings ..) .
[ "url" ]?
ServerVariables.
POST GET url?
, Request [ "url" ] # , . . Request.Path.