• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
What’s the Difference Between Post and Get Requests?

What’s the Difference Between Post and Get Requests?

Posted on November 14, 2020 by Mel Hawthorne Leave a Comment

GET and POST are the two most commonly used HTTP request methods. Typically GET requests are used to request webpages while POST is used to send data to the webserver such as through a webform.

Tip: While they are called HTTP methods, both GET and POST are also used in HTTPS.

One of the important distinctions is that any parameters included in GET requests are included in the URL itself, whereas parameters in POST requests are part of the request body.

For example, a GET request URL may look like “GET.php?parameter=value” whereas the URL for a POST request would look like “POST.php” and then have the “parameter=value” set in the request body.

One of the key ramifications of this is that when webservers log requests the requested URL is always logged. So, for GET requests, the parameters are also logged, in the case of POST requests though the values are not logged as the body of the request isn’t logged. This is especially important for forms that contain sensitive data such as passwords or PII (Personally Identifiable Information), as using POST means that this information doesn’t get logged in webservers.

Other differences between GET and POST include the fact that GET requests can be cached by the browser or third-party caches, GET requests are included in the browser history and can be bookmarked. POST requests in comparison are never cached, are not saved to the browser history, and can’t be bookmarked.

It is possible to configure forms to use a GET request to send data to the webserver but doing so is a bad idea as all of these factors come into play. It’s especially important for sensitive forms such as login forms as if this request was logged it would disclose the user’s password, and if the response was cached by a third-party it could let other users sign into the user’s account.

You Might Also Like

  • What Is the Difference Between USB 2.0 and USB 3.0?What Is the Difference Between USB 2.0 and USB 3.0?
  • What is the Difference Between Proxy and VPN?What is the Difference Between Proxy and VPN?
  • What Is the Difference Between Java and Javascript?What Is the Difference Between Java and Javascript?
  • Windows 10 Home and Pro: What's The Difference?Windows 10 Home and Pro: What's The Difference?
  • What’s the difference between CPUs and GPUs?What’s the difference between CPUs and GPUs?
  • Difference Between Samsung S20 and S20 UltraDifference Between Samsung S20 and S20 Ultra
  • Proxy Server vs VPN: What's the DifferenceProxy Server vs VPN: What's the Difference
  • What’s the Difference Between DDR and GDDR Memory?What’s the Difference Between DDR and GDDR Memory?
  • The Difference Between HDDs and SDDsThe Difference Between HDDs and SDDs

Filed Under: Internet

Reader Interactions

Did this help? Let us know! Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • WhatsApp Self-Destructing Messages: What You Need to Know
  • Spotify: How to Merge Playlists
  • Google Duo on Android: How To Add Automatic Captions To Video and Audio Messages
  • Slack: How To Disable Notifications for Threads You’re Following
  • Slack: How To Configure Your Status
  • Google Duo: How To Prevent Other People From Seeing Your Video Before They Pick up Your Call
  • Slack: How To Configure Notification Keywords
  • How to Tell If Your Phone Is Dual-SIM

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Follow me on Twitter, or visit my personal blog.

You May Also Like

  • Power-On Self-Test (Post)

© Copyright 2021 Technipages · All Rights Reserved · Privacy