HttpRequest 클래스는 ASP.NET이 클라이언트에서 보낸 HTTP 값을 읽을 수 있도록 합니다
protected void Page_Load(object sender, EventArgs e)
{
// 웹 폼에서 현재 접속자의 IP 주소 얻기
Label1.Text = Request.UserHostAddress; // 추천
Label2.Text = Request.ServerVariables["REMOTE_HOST"];
Label3.Text = Request.ServerVariables["REMOTE_ADDR"];
}
string cookie = Request.Cookies["쿠키이름"]
string fullname1 = Request.QueryString["fullname"]; // 쿼리 문자열만 찾음
string fullname2 = Request["fullname"]; // 모든 HTTP 요청 컬렉션에서 "fullname" 키를 찾음