title: "Post" and "GET" requests from PhoneGap on iOS to PHP on server not working
body: <p>From a PhoneGap app on iOS I am trying to do a jQuery Post call to a PHP file that can be found on a server.
  This is the command:</p>
  
  <pre><code>$.post({url:'http://example.com/uploadtest/addContent.php', data: JSONstring, success:contentSent});
  </code></pre>
  
  <p>On the server I'm logging any occasion when <code>addContent.php</code> is called. Unfortunately, it never is. Neither is the <code>contentSent()</code> method:</p>
  
  <pre><code>function contentSent(data, textStatus)
  {
      console.log("Did it get into the callback? Status:" + textStatus);
      var response = JSON.parse(data);
      console.log("Response: " + data);
  }
  </code></pre>
  
  <p>My problem is that I get absolutely no feedback, no error message, nothing. It's just as if that line of code wouldn't be there. 
  Does someone know what the problems is, or at least how I may get some kind of status message / error code?</p>
  
  <p><strong>Update 1:</strong> <em>"GET" shows the same behavior.</em></p>
  
  <p><strong>Update 2:</strong> <em>The syntax I'm using in the upper example is faulty, but this (AFAIK correct) syntax doesn't work either: <code>$.get('http://example.com/uploadtest/getTest.php', JSONstring, successFunction);</code></em></p>
  
  <p><strong>Update 3:</strong> <em>The problem does not seem to be device-related, it shows the same behavior from the emulator.</em></p>