help to make a correct js post-request. There is a site to which a post request is sent. There is a result of what the data should look like. enter image description here

But I just can not figure out how to make it right.

var cers = '2890'; $.ajax({ type: 'post', url: "страница обработчик", data: cers processData: false, contentType: false, }) 

I get this crap: enter image description here Or like this: enter image description here

And the data itself is not processed.

Thanks for any help.

    2 answers 2

    Everything is just the data passed through the object

     var cers = '2890'; $.ajax({ type: 'post', url: "страница обработчик", data: { parcell:cers } processData: false, contentType: false, }) 
    • Unfortunately, this did not help. But I still found a solution. - user309309

    Found a solution and it is pretty stupid. Before the request did not declare this:

     Var f_d = new FormData(); f_d.append("parcel141244", cers);