title: Contact API directly from URL in browser
body: <p>I am trying to understand how POST and/or GET methods work in terms of the actual browser.</p>
  
  <p>I am attempting to contact an API which requires API key, method you wish to use on their side, and an IP address at the minimum.</p>
  
  <p>My original idea was to do something like this:</p>
  
  <p>I feel like I'm on the right track, it does something and gets an error as opposed to telling me the page does not exist. I'm expecting either JSON or XML in response as the API supports both but instead I get this error:</p>
  
  <pre><code>This page contains the following errors:
  error on line 1 at column 1: Document is empty
  Below is a rendering of the page up to the first error.
  </code></pre>
  
  <p>Upon studying the documentation of the API more, I found something saying that methods are called using HTML form application/x-www-form-urlencoded and the resuource models are given as form elements.</p>
  
  <p>I tried researching what that means to see what the problem was and found this site <a href="http://www.w3.org/TR/xforms11/" rel="nofollow">http://www.w3.org/TR/xforms11/</a> but I'm still unclear. </p>
  
  <p>Ideas?</p>