title: Should I use GET or POST to send commands to server?
body: <p>I am developing a simple application in python that provides a browser based interface using a local server. The structure is like this:  </p>
  
  <pre><code>[Interface] &lt;===&gt; {  [Server] &lt;---&gt; [Application]  }  
  </code></pre>
  
  <p>My application has a class function called, say, <code>compute()</code>. On my browser interface, I have a button <em>Compute</em>. When the user clicks it, I want to run <code>compute()</code>. My current approach is to send a <code>GET</code> request like <code>/path/compute</code>. The server identifies the request path and runs the function. Is this the correct way to go about it?  </p>
  
  <p>From <a href="https://stackoverflow.com/questions/504947/when-should-i-use-get-or-post-method-whats-the-difference-between-them">this accepted answer</a>:</p>
  
  <blockquote>
    <p>GET is used for viewing something, without changing it, while POST is used for changing something  </p>
  </blockquote>
  
  <p>I am not using <code>GET</code> here to view something immediately, but to send a command that changes the state of the application. Should I use <code>POST</code> instead? Is there another method?</p>