$.ajax vs $.post

$.ajax vs $.post

Hi everybody,

could anybody tell me, why those two ajax calls, which should behave the same way, do not...

  1.         var requestBody = { 'method' : method, 'params' : params };
           
            $.post(url, requestBody,
                   function(data){
                     $('#output').html(data);
                   }
            );
           
            $.ajax({
                url: url,
                contentType: 'application/json',
                data: requestBody,
                dataType: 'json',
                processData: false,
                type: 'POST',
                success: function(data){
                     $('#output2').html(data);
                   }
            });

















With the $.post call, everything is fine, my php script gets the post vars,
but with $.ajax I get any post vars.

What am I doing wrong?

regards jens