Help: Which Content-Type header is/are correct? Help needed to figure out where am I doing it wrong?

fetch (url, {
method: ‘post’,
headers: {
“Content-type”: -------------
body: ‘foo=bar & lorem=ipsum’

After considering the snippet above which of the following values for the Content-Type header is/are correct?

A) application/x-www-form-urlencoded; charset=UTF-8
B) text/html; charset=utf-8
C)application/json; charset=UTF-8
D)Content-Type: multipart/form-data; boundry=something

According to me B and D is correct but the test is failing me. Any suggestions?

Hello there,

I would also put B. But what tests are you referring to?

We do not have much context for what you are doing.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.