URI는 리소스(representation) ,메서드는 행위

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- <form action="처리할 페이지 주소" method="전달 방식"></form> -->
<form action="index.jsp" method="post" autocomplete="on">
<label>아이디: </label> <input type="text" name="id" id="id"> <br>
<label>비밀번호:</label> <input type="password" name="password" id="pw" size="18"><br>
<input type="submit" value="로그인">
</form>
</body>
</html>

요청 메서드에 따라서 서버에서 처리되는 과정, 반환되는 메세지의 형태가 달라진다.
HTTP/1.1에서 정의한 메서드에는 총 9가지가 존재하며, 서비스에 따라 커스텀 확장 메서드를 만들 수 도 있다.
다만 모든 서버가 모든 메서드를 구현하지 않는다. 서버의 상황에 따라 제한적으로 정해 진다.
<!-- <form action="처리할 페이지 주소" method="전달 방식"></form> -->
<form action="index.jsp" **method="get"** autocomplete="on">
<label>아이디: </label> <input type="text" name="id" id="id"> <br>
<label>비밀번호:</label> <input type="password" name="password" id="pw" size="18"><br>
<input type="submit" value="로그인">
</form>

요청