Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GET vs POST #4

Open
cheatsheet1999 opened this issue Sep 4, 2021 · 0 comments
Open

GET vs POST #4

cheatsheet1999 opened this issue Sep 4, 2021 · 0 comments

Comments

@cheatsheet1999
Copy link
Owner

cheatsheet1999 commented Sep 4, 2021

GET is used to request a specified resource from server.

Some other notes on GET requests:

  • GET have no body data
  • GET requests can be cached
  • GET requests remain in the browser history
  • GET requests can be bookmarked
  • GET requests should never be used when dealing with sensitive data
  • GET requests have length restrictions
  • GET requests are only used to request data (not modify)

POST is used to send data to a server to create/update a resource.

Some other notes on POST requests:

  • POST have body data
  • POST requests are never cached
  • POST requests do not remain in the browser history
  • POST requests cannot be bookmarked
  • POST requests have no restrictions on data length
@cheatsheet1999 cheatsheet1999 changed the title GET v.s POST GET vs POST Sep 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant