title: jquery ajax call fails when data size exceeds 1119 bytes
body: <p>A button click triggers this code:</p>
  
  <pre><code>  $("#testButton").click(function() {        
      var str = $("#ptext").html();
      $.ajax({
        type: "POST",
        url: "/pages/testfn",
        data: { thetext: str }
      })
      .done(function(msg) {
        alert( "success " + msg );
      });       
    });
  </code></pre>
  
  <p>The php that handles this is this:</p>
  
  <pre><code>public function testfn() {
    $s = $_POST['thetext'];
    echo strlen($s);
  }  
  </code></pre>
  
  <p>This works perfectly if the amount of text I have in the #ptext div is less than 1120 bytes. More than that and it silently fails. How can I pass more than 1120 bytes to the testfn function?</p>