• 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 278 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 (22.1K 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

  • Application Modernization : Cloud Can Take Your Applications to the Next Level July 5, 2022
  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022

About This Article

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

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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