0

I'm testing an API that won't work if Content-Type HTTP header is provided, the request look like this:

# this works
curl -X "POST" "https://example.com" \
     -d "text=text content"

If I create this request in Paw, Content-Type is automatically added and the request becomes

# this doesn't work for this API
curl -X "POST" "https://example.com" \
     -H 'Content-Type: text/plain; charset=utf-8' \
     -d "text=text content"

So how do I disable the Content-Type header? Setting it with an empty value doesn't work either.

Teddy C
  • 786
  • 10
  • 13
  • 1
    https://stackoverflow.com/questions/40567592/remove-content-type-header-when-making-an-http-request – hanino Dec 02 '20 at 02:39

1 Answers1

1

Paw has an "Automatically Send Content-Type Header" option under Preferences -> Network.

paw preferences, network tab

taylorthurlow
  • 2,953
  • 3
  • 28
  • 42