title: PHP cURL Post request not working
body: <p>I having issues running the correct cURL request. I am meant to do a Post request to the URL.</p>
  
  <p>The example only runs a command line cURL request</p>
  
  <pre><code>$ curl -i -X POST {URL}
  </code></pre>
  
  <p>The issue I am running the following code and I am getting '400 Bad Request' </p>
  
  <pre><code>$ch = curl_init();
  curl_setopt( $ch, CURLOPT_POST, 1 );
  curl_setopt( $ch, CURLOPT_URL, $url );
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  curl_setopt( $ch, CURLOPT_TIMEOUT, 10 );
  $output = curl_exec( $ch );
  curl_close( $ch );
  </code></pre>
  
  <p>Can anyone help with sending the request correctly.</p>