replace tabs with spaces for indenting
check for present content-type header properly to not set it twice
x-www-form-urlencoded content-type does not accept charset actually