Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PWTRyanWhite
Frequent Visitor

REST connector ignores any "Content-Type" header specified in additional headers when request body

When trying to use the GET method in the copy data, I need to include the Content-Type to call my endpoint, however I get this message everytime I try and use the activity.

 

I can call using web activity, because I do not receive the " REST connector ignores any "Content-Type" header specified in additional headers when request body", but not the copy data activity.

 

Any thoughts?

1 ACCEPTED SOLUTION
v-nuoc-msft
Community Support
Community Support

Hi @PWTRyanWhite 

 

In the HTTP protocol, GET requests usually do not need to include the “Content-Type” header because GET requests do not carry a request body.

 

The Content-Type header is primarily used to indicate the media type of the request body, such as in a POST or PUT request.

 

In Microsoft Fabric, the REST connector follows this standard and therefore ignores the Content-Type header in GET requests.

 

This is because the main purpose of a GET request is to get data from the server, not to send it, so there is no need to specify the type of the request body.

 

If your API needs to include the Content-Type header in a GET request, you might consider using a Web activity.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-nuoc-msft
Community Support
Community Support

Hi @PWTRyanWhite 

 

In the HTTP protocol, GET requests usually do not need to include the “Content-Type” header because GET requests do not carry a request body.

 

The Content-Type header is primarily used to indicate the media type of the request body, such as in a POST or PUT request.

 

In Microsoft Fabric, the REST connector follows this standard and therefore ignores the Content-Type header in GET requests.

 

This is because the main purpose of a GET request is to get data from the server, not to send it, so there is no need to specify the type of the request body.

 

If your API needs to include the Content-Type header in a GET request, you might consider using a Web activity.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.