<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [resolved] How to change Content-Type header in REST Client in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-change-Content-Type-header-in-REST-Client/m-p/2355704#M121399</link>
    <description>Hello! 
&lt;BR /&gt;I am using REST Client to send a REST requests to Microsofts OneDrive. 
&lt;BR /&gt;You can check the picture about how my request looks in the REST Client. 
&lt;BR /&gt;When I run it, this is what I am getting: 
&lt;BR /&gt;ID: 2 
&lt;BR /&gt;Address: 
&lt;A href="https://apis.live.net/v5.0/me?access_token=EwCIAq1DBAAUGCCXc8wU/zFxxxxxxxxxxxxxxxxxxx" target="_blank" rel="nofollow noopener noreferrer"&gt;https://apis.live.net/v5.0/me?access_token=EwCIAq1DBAAUGCCXc8wU/zFxxxxxxxxxxxxxxxxxxx&lt;/A&gt; 
&lt;BR /&gt;Http-Method: GET 
&lt;BR /&gt;Content-Type: */* 
&lt;BR /&gt;Headers: {Accept=, Content-Type=} 
&lt;BR /&gt;-------------------------------------- 
&lt;BR /&gt;: org.apache.cxf.interceptor.LoggingInInterceptor - Inbound Message 
&lt;BR /&gt;---------------------------- 
&lt;BR /&gt;ID: 2 
&lt;BR /&gt;Response-Code: 415 
&lt;BR /&gt;Encoding: UTF-8 
&lt;BR /&gt;Content-Type: application/json; charset=UTF-8 
&lt;BR /&gt;Headers: {Cache-Control=, Content-Length=, content-type=, Date=, P3P=, 
&lt;BR /&gt;Server=, X-AsmVersion=, X-Content-Type-Options=, 
&lt;BR /&gt; X-HTTP-Live-Request-Id=, X-MSNSERVER=} 
&lt;BR /&gt;Payload: { 
&lt;BR /&gt; "error": { 
&lt;BR /&gt; "code": "request_body_invalid_media_type", 
&lt;BR /&gt; "message": "The Content-Type header '*/*' isn't expected for this HTTP method." 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt; 
&lt;BR /&gt;In fact, it is MS that decides that the request must be send without Content-Type header: 
&lt;BR /&gt; 
&lt;A href="http://social.msdn.microsoft.com/forums/onedrive/en-US/e98ee952-e698-4a54-8a14-98c69147bd06/using-the-access-token-to-get-users-info-and-live-reponds-with-requestbodyinvalidmediatype" target="_blank" rel="nofollow noopener noreferrer"&gt;http://social.msdn.microsoft.com/forums/onedrive/en-US/e98ee952-e698-4a54-8a14-98c69147bd06/using-the-access-token-to-get-users-info-and-live-reponds-with-requestbodyinvalidmediatype&lt;/A&gt; 
&lt;BR /&gt;So, my question is how to remove this from my request? Is this actually possible? 
&lt;BR /&gt;Is there is another way to send REST requests in the ESB version? 
&lt;BR /&gt;I tried to send REST request with the non-ESB REST sender, but it cannot be deployed on the ESB version. 
&lt;BR /&gt;Thank you very much! 
&lt;BR /&gt;Kind regards, 
&lt;BR /&gt;Stanislav Ivanov 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME7Y.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142607iB151D174CA46941B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME7Y.jpg" alt="0683p000009ME7Y.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 27 May 2014 10:47:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-27T10:47:31Z</dc:date>
    <item>
      <title>[resolved] How to change Content-Type header in REST Client</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-change-Content-Type-header-in-REST-Client/m-p/2355704#M121399</link>
      <description>Hello! 
&lt;BR /&gt;I am using REST Client to send a REST requests to Microsofts OneDrive. 
&lt;BR /&gt;You can check the picture about how my request looks in the REST Client. 
&lt;BR /&gt;When I run it, this is what I am getting: 
&lt;BR /&gt;ID: 2 
&lt;BR /&gt;Address: 
&lt;A href="https://apis.live.net/v5.0/me?access_token=EwCIAq1DBAAUGCCXc8wU/zFxxxxxxxxxxxxxxxxxxx" target="_blank" rel="nofollow noopener noreferrer"&gt;https://apis.live.net/v5.0/me?access_token=EwCIAq1DBAAUGCCXc8wU/zFxxxxxxxxxxxxxxxxxxx&lt;/A&gt; 
&lt;BR /&gt;Http-Method: GET 
&lt;BR /&gt;Content-Type: */* 
&lt;BR /&gt;Headers: {Accept=, Content-Type=} 
&lt;BR /&gt;-------------------------------------- 
&lt;BR /&gt;: org.apache.cxf.interceptor.LoggingInInterceptor - Inbound Message 
&lt;BR /&gt;---------------------------- 
&lt;BR /&gt;ID: 2 
&lt;BR /&gt;Response-Code: 415 
&lt;BR /&gt;Encoding: UTF-8 
&lt;BR /&gt;Content-Type: application/json; charset=UTF-8 
&lt;BR /&gt;Headers: {Cache-Control=, Content-Length=, content-type=, Date=, P3P=, 
&lt;BR /&gt;Server=, X-AsmVersion=, X-Content-Type-Options=, 
&lt;BR /&gt; X-HTTP-Live-Request-Id=, X-MSNSERVER=} 
&lt;BR /&gt;Payload: { 
&lt;BR /&gt; "error": { 
&lt;BR /&gt; "code": "request_body_invalid_media_type", 
&lt;BR /&gt; "message": "The Content-Type header '*/*' isn't expected for this HTTP method." 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt; 
&lt;BR /&gt;In fact, it is MS that decides that the request must be send without Content-Type header: 
&lt;BR /&gt; 
&lt;A href="http://social.msdn.microsoft.com/forums/onedrive/en-US/e98ee952-e698-4a54-8a14-98c69147bd06/using-the-access-token-to-get-users-info-and-live-reponds-with-requestbodyinvalidmediatype" target="_blank" rel="nofollow noopener noreferrer"&gt;http://social.msdn.microsoft.com/forums/onedrive/en-US/e98ee952-e698-4a54-8a14-98c69147bd06/using-the-access-token-to-get-users-info-and-live-reponds-with-requestbodyinvalidmediatype&lt;/A&gt; 
&lt;BR /&gt;So, my question is how to remove this from my request? Is this actually possible? 
&lt;BR /&gt;Is there is another way to send REST requests in the ESB version? 
&lt;BR /&gt;I tried to send REST request with the non-ESB REST sender, but it cannot be deployed on the ESB version. 
&lt;BR /&gt;Thank you very much! 
&lt;BR /&gt;Kind regards, 
&lt;BR /&gt;Stanislav Ivanov 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME7Y.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142607iB151D174CA46941B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME7Y.jpg" alt="0683p000009ME7Y.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 27 May 2014 10:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-change-Content-Type-header-in-REST-Client/m-p/2355704#M121399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-27T10:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to change Content-Type header in REST Client</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-change-Content-Type-header-in-REST-Client/m-p/2355705#M121400</link>
      <description>Hello! 
&lt;BR /&gt;After some playing around, I managed to use the tRESTClient. 
&lt;BR /&gt;In order to change the content-type, you should simply add it to the "HTTP Header" in "Advanced Settings". 
&lt;BR /&gt;Check the photo I am attaching. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEGy.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151521iBE99323A4B6296F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEGy.jpg" alt="0683p000009MEGy.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-change-Content-Type-header-in-REST-Client/m-p/2355705#M121400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-02T13:49:21Z</dc:date>
    </item>
  </channel>
</rss>

