What does it mean "I don't want the Content-Type header to set at all"?
The browser (or another http client) sends your mail request to the server, so it must tell the server how it encoded the parameters.
If the Content-Type header is not set, on the server side you (= your server) will not be able to figure out how to parse the received data.
If you did not set Content-Type, the default value will be used.
Your browser (or another http client) MUST do two things:
- Send key / value pairs.
- Tell the server how key / value pairs were encoded.
Thus, it is impossible to completely get rid of this header.
Alex Kreutznaer
source share