Paw - How do I disable Content-Type header?

81 Views Asked by At

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.

1

There are 1 best solutions below

0
taylorthurlow On BEST ANSWER

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

paw preferences, network tab