title: From curl to jQuery AJAX post
body: <p>Hi i want to convert this cmd curl to JQuery Ajax Post :</p>
  
  <pre><code>curl -k -X POST https://openshift.redhat.com/broker/rest/domains/MyDomain/applications 
  --user "user@myemail.com:password" 
  --data "name=myapp&amp;cartridge=php-5.3&amp;scale=true"
  </code></pre>
  
  <p>thats what i do : </p>
  
  <pre><code> jQuery.ajax({
       url: 'https://openshift.redhat.com/broker/rest/domains/MyDomain/applications ',
       username: 'user@myemail.com',
       password: 'password',
       type: 'POST',
       dataType: 'json',
       contentType: 'application/json',
       processData: false,
       data: 'name=myapp&amp;cartridge=php-5.3&amp;scale=true"',
       success: function (data) {
           alert(JSON.stringify(data));
       },
       error: function(xhr, status, error) {
          alert("(" + xhr.responseText + ")");
       }
   });
  </code></pre>
  
  <p>and i get this error after submitting in my alerte :</p>
  
  <pre><code>(&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
   &lt;title&gt;404 Not Found&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
   &lt;h1&gt;Not Found&lt;/h1&gt;
  &lt;p&gt;The requested URL /https://openshift.redhat.com/broker/rest/domains/MyDomain/applications      was not found on this server.&lt;/p&gt;
    &lt;hr&gt;
    &lt;address&gt;Apache/2.4.6 (Fedora) Server at drupal-pcsol.openshift.local Port 80&lt;/address&gt;
   &lt;/body&gt;&lt;/html&gt;
  )
  </code></pre>
  
  <p>Any ideas please ?</p>