Code Skiller logoCB Logo
Logo LearnLearnLogo PracticePracticeLogo HireHireLogo IDEIDE

GET vs POST

User image

Published by

sanya sanya

Published at: 28th Jul, 2023
0.885 mins read

The comparison table showcasing the main differences between GET and POST requests is mentioned below.

GET RequestPOST Request
Retrieve data from a resourceIt sends the data to the server to create the resource.
Safe and idempotent** Not safe or idempotent.
Parameters and data are appended to the URL as query parameters.Parameters and data are sent in the body of the request.
Requests can be cached by browsers and intermediary systems.Requests are not cached by default.
Requests can be bookmarked and shared.Requests are not typically bookmarked or shared.
Limited length due to URL length restrictions.No specific length limitations in POST Body.
Data is visible in URL and may be cached.Data is hidden in the request body.


** "idempotent" refers to a property of an operation that ensures the same result occurs no matter how many times it is performed.

Library

WEB DEVELOPMENT

Basic

Frontend

Backend

Node JS

Node Modules

Restful Routing

Static Files

REST API

Introduction to Node JS

GET vs POST

Database

Interview Questions

FAANG QUESTIONS