• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » What is HTTP POST Method?

By Abhishek Ghosh March 14, 2019 11:50 am Updated on March 14, 2019

What is HTTP POST Method?

Advertisement

In some previous Arduino guide, we used HTTP POST method to upload sensor data. What is HTTP POST? HTTP POST is used to send data to a server to create or update a resource where the URL already existing. In the same way, we used HTTP GET with WordPress, HTTP PUT with OpenStack Swift. First, we need to understand what is HTTP POST, second we need to know basic difference with simillar methods such as HTTP PUT and HTTP PATCH. The relevant specification for PUT and POST is RFC 2616 §9.5ff :

Vim
1
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5

There are times when HTTP GET is less suitable even for data retrieval.
The HTTP GET request method retrieves information from the server and that is commonly used by the browsers. HTTP POST is a request method where a web server accepts the data enclosed in the body of the request message, most likely for storing it. It is often used when uploading a file or when submitting a completed web form.
An arbitrary amount of data of any type can be sent to the server in the body of the request message. A header field in the POST request usually indicates the message body’s media type.

HTTP POST to a URL creates a child resource at a server defined URL.
HTTP PUT to a URL creates/replaces the resource in its entirety at the client defined URL.
HTTP PATCH to a URL updates part of the resource at that client defined URL.
HTTP OPTIONS to a URL requests to return data describing what other methods and operations the server supports at the given URL.

Advertisement

---

HTTP POST creates a child resource, so POST to /items creates a resources that lives under the /items resource. HTTP PUT is for creating or replacing a resource at a URL known by the client. PUT is only a candidate for CREATE where the client already knows the url before the resource is created. PUT is idempotent: calling it once or several times successively has the same effect (that is no side effect), where successive identical POST may have additional effects, like passing an order several times.

Now for accepting HTTP POST on own server. HTTP POST is a little unsafe. With improper permission of server directories, it is possible to upload a Javascript based web console by an unauthorized and manipulate the server. For those reasons, chown, chgrp, chmod are given huge importance to the newbie users. That thing not only for GET.

What is HTTP POST Method

Vim
1
2
illustration by https://www.geeksforgeeks.org/get-post-requests-using-python/
Which is a good resource on this topic for Python

HTTP POST is not encrypted, it can be intercepted by a network sniffer, by a proxy or leaked in the logs of the server with a customised logging level. POST just puts the information in a different place (request message body) than GET (url). Some people feel like the latter exposes more information, which is true for some points. POST is better than GET because POST data is not usualy logged by a proxy or server, but it is not secure. To secure a password or other confidential data you must use SSL or encrypt the data before you POST. Another option would be to use Digest Authentication with the browser. Encryption is not enough to prevent replay attacks, you must concatenate a nonce and other data (eg. realm) before encrypting.

As for WordPress, Perishable Press has a good article to protect from malicious HTTP POST requests :

Vim
1
https://perishablepress.com/protect-post-requests/

Tagged With #* @http_post /predict , python request()

This Article Has Been Shared 424 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is HTTP POST Method?

  • Sensor in Technology and Nature

    Sensor picks up specific physical or chemical properties to complete action. To be measured parameter must be predefined either qualitatively or Quantitatively.

  • Self Portrait Ideas and Tips For Digital Photography

    Self Portrait Ideas and Tips For Digital Photography can push your creativity to the next level, even with a mobile phone camera, but how you can make the flow ? When we are talking about Self Portrait Ideas and Tips For Digital Photography, definitely three things arrives at minimum – the first is Portrait Photography in […]

  • How to Deliver Cloud to Your Customers as SaaS or PaaS

    How to Deliver Cloud to Your Customers as SaaS or PaaS at a time when users are adapting for cloud, not only in the form of virtual servers but also as SaaS.

  • Text Editors for Mac OS X : Best of the Bests yet Free

    Text Editors for Mac OS X are required for more advanced functions than the default text editors like helpful syntax highlighting, macro and tabs.

  • Session Initiation Protocol or SIP

    Session Initiation Protocol or SIP is a network protocol for setting up, controlling and terminating a communication session between two or more participants.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • The Importance of Voice and Style in Essay Writing April 1, 2023
  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023

About This Article

Cite this article as: Abhishek Ghosh, "What is HTTP POST Method?," in The Customize Windows, March 14, 2019, April 2, 2023, https://thecustomizewindows.com/2019/03/what-is-http-post-method/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT