# "content-type of the request should be text/xml " Error when connecting to Salesforce via SOAP

**URL:** <https://community.postman.com/t/content-type-of-the-request-should-be-text-xml-error-when-connecting-to-salesforce-via-soap/26478>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [August 5, 2021, 2:53pm UTC](https://community.postman.com/t/content-type-of-the-request-should-be-text-xml-error-when-connecting-to-salesforce-via-soap/26478 "2021-08-05T14:53:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![twill727](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@twill727](https://community.postman.com/u/twill727)\
**Post date:** [August 5, 2021, 9:50pm UTC](https://community.postman.com/t/content-type-of-the-request-should-be-text-xml-error-when-connecting-to-salesforce-via-soap/26478/7 "2021-08-05T21:50:00Z")

</div>

HI @pranavdavar I discovered the problem: In order to stop the Content-Type from automatically displaying the application/xml , we need to:

1. change the method from Post to Get so that the Content-Type will be removed.

1B) Set the Body Tab to form-data.

1. In the Headers tab, add the new Content-Type as the key and add text/xml as the value.

2. Change the method back to Post and verify that the default Content-Type does not overwrite the one you just added in step 2.

3b) Change Body Tab to raw.

1. Send your request and verify that you get a return code of 200 OK.

2. Check the response body which should give you your SF user instance and you  
Solution page: [Content-Type Header Automatically Added to GET Requests - #6 by mer2018](https://community.postman.com/t/content-type-header-automatically-added-to-get-requests/2912/6)

---

_[View the full topic](https://community.postman.com/t/content-type-of-the-request-should-be-text-xml-error-when-connecting-to-salesforce-via-soap/26478)._
