HTTP Methods GET vs POST

0 투표

HTTP defines a set of request methods to indicate the desired action to be performed for a given resource. GET and POST are two different types of HTTP requests . If the method is not specified in the html form GET will be used by default.

HTTP GET

GET method places name value pairs as plain text in URL. GET requests are often cached by default by some browsers if you are not careful. It can send but the parameter data is limited to what we can stuff into the request line (URL). Safest to use less than 2K of parameters, some servers handle up to 64K. Also, GET is less secure compared to POST because data sent is part of the URL. So it's saved in browser history and server logs in plaintext . Finally, GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send.

HTTP POST

POST requests supply additional data from the client (browser) to the server in the message body. It submits data to be processed (e.g., from an HTML form) to the identified resource. The data is included in the body of the request. This may result in the creation of a new resource or the updates of existing resources or both. In the case of security, POST is a little safer than GET because the parameters are not stored in browser history or in web server logs.POST method variables are not displayed in the URL and cannot be cached. With POST you can also do multipart mime encodingwhich means you can attach files as well. Also if you are using post variables across navigation of pages, the user will get a warning asking if they want to resubmit the post parameter.

당신의 답변

보여지는 당신의 이름 (옵션):
개인정보 보호: 이메일 주소는 이 알림을 발송하기 위해 사용됩니다.
안티-스팸 확인:
앞으로 이 검증을 피하려면,로그인 혹은 가입 하시기바랍니다.
구로역 맛집 시흥동 맛집
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
add
...