Do not send additional data in PUT requests

I am making an API with PHP, and since it does not manage the parameters of the PUT, DELETE, etc. requests, I must obtain these parameters on my own.

The problem is that Postman sends extra information and for that reason my API cannot read the data:

---------------------------- 010861295089232960525118
Content-Disposition: form-data; name = "name"

My name and surname
---------------------------- 010861295089232960525118
Content-Disposition: form-data; name = "phone"

902948229
---------------------------- 010861295089232960525118--

What I want is to make Postman only send what the browser would send in a normal PUT request, with no extra information. Since when I test with other API test programs, it works perfectly.

Hi @brahimbjz,

Welcome to the community! :clap:

To do this, you can go to the โ€œHeadersโ€ tab in your request, and make sure Hidden auto-generated Headers are visible. From there, you should be able to check off what headers you want to be sent in the request, and which ones you donโ€™t.

As for putting in the headers a browser will put in, that is pretty variable, given it can put in CORS headers, security headers, etc. This is dependent on your front end client thats consuming to back end API.

Let me know if this works!

Best,
Orest