title: jquery ajax and java server, lost data
body: <p>i have this ajax function that looks like so</p>
  
  <pre><code>   $.ajax({
                        type: "POST",
                        url: "http://localhost:55556",
                        data: "lots and lots of pie",
                        cache: false,
                        success: function(result)
                        {     
                          alert("sent");
  
  
                        },
                        failure: function()
                        {
                                alert('An Error has occured, please try again.');
                        }
                });
  </code></pre>
  
  <p>and a server that looks like so</p>
  
  <pre><code> clientSocket = AcceptConnection();
  
   inp = new BufferedReader(new InputStreamReader (clientSocket.getInputStream()));
   String requestString = inp.readLine();
  
   BufferedReader ed = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
  
     while(true){
            String tmp = inp.readLine();
            System.out.println(tmp);
       }
  </code></pre>
  
  <p>now the odd thing is when i send my ajax my server gets by using system.out </p>
  
  <pre><code>Host: localhost:55556
  User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
  Accept: */*
  Accept-Language: en-US,en;q=0.5
  Accept-Encoding: gzip, deflate
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  Content-Length: 20
  Origin: null
  Connection: keep-alive
  Pragma: no-cache
  Cache-Control: no-cache  
  </code></pre>
  
  <p>the question is where is the data that i sent through, where is lots of pie?</p>