# Get request is not sending header changes

**URL:** <https://community.postman.com/t/get-request-is-not-sending-header-changes/71818>\
**Category:** Help Hub\
**Tags:** request, headers\
**Created:** [November 28, 2024, 2:29pm UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818 "2024-11-28T14:29:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommy78](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@tommy78](https://community.postman.com/u/tommy78)\
**Post date:** [November 28, 2024, 2:29pm UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/1 "2024-11-28T14:29:22Z")

</div>

Dear community,  
I hope someone can help me. When I send curl -H “Accept: application/xml” localhost:8080/movie to my server. I get the answer in xml format. But when I tray to do it in postman, is it not working. In Postman I did a Get request [http://localhost:8080/movie](http://localhost:8080/movie) and I added under headers a key ( Content-Type) value (application/xml), with the name Content-Type-xml. When I look under Headers I can see that my Content-Type-xml ist checked. When I send my request, my result is only in json not in xml. My server send json in default. I make only this changes. Can someone tell me, what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 28, 2024, 2:32pm UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/2 "2024-11-28T14:32:07Z")

</div>

Hey @tommy78 👋🏻

Welcome to the Postman Community :postman:

Can you provide some visual examples of how you have structured your request, with the headers section showing please?

Do you also add in the correct Accept header into Postman?

---

<div class="post-metadata">

**Author:** ![tommy78](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@tommy78](https://community.postman.com/u/tommy78)\
**Post date:** [November 28, 2024, 3:20pm UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/3 "2024-11-28T15:20:00Z")

</div>

![Bildschirmfoto 2024-11-28 um 16.11.58](https://us1.discourse-cdn.com/getpostman/original/3X/0/4/0461211edfc00855932f1917616471cb1491102d.png)

Hi Danny,  
I hope this helps!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 28, 2024, 5:22pm UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/4 "2024-11-28T17:22:05Z")

</div>

Are you also able to manually add in that `Accept` header to mimic what you have in the curl command?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/e/ce3d00a0348cfa5e6019c4ce426e9c82012d3804.png)

What part of your server code returns the XML or JSON?

---

<div class="post-metadata">

**Author:** ![tommy78](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@tommy78](https://community.postman.com/u/tommy78)\
**Post date:** [November 29, 2024, 6:50am UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/5 "2024-11-29T06:50:48Z")

</div>

Hallo Danny,  
thank you very much! You helped me to understand how the headers are working. You are right, I didn’t use the Accept header and this was the problem. Postman is a great tool 🙂

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 29, 2024, 7:59am UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/6 "2024-11-29T07:59:23Z")

</div>

You’re welcome. Happy to help.

Top tip - you can paste your curl command directly into the URL address bar in the app and it will create the request for you. That should help with any missing details.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 2, 2024, 8:00am UTC](https://community.postman.com/t/get-request-is-not-sending-header-changes/71818/7 "2024-12-02T08:00:02Z")

</div>

Closed on December 2, 2024, 8:00am UTC

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