<?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 Re: cCXFRS override content-type and accept headers in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200230#M2781</link>
    <description>Hello&lt;BR /&gt;using Mediation Routes you should be able to set the CamelContentType header&lt;BR /&gt;g.</description>
    <pubDate>Tue, 23 Feb 2016 13:26:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-23T13:26:34Z</dc:date>
    <item>
      <title>cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200229#M2780</link>
      <description>Hi,&lt;BR /&gt;Is there any way of overriding content-type and accept header values ? I need to set those values so something custom (application/json;odata=verbose), and cannot find how to do that. If I use a cSetHeader in the route, it gets overriden by the values from the cCXFRS component.&lt;BR /&gt;Any ideas ? Thanks ...&lt;BR /&gt;PS : The same is true when I use the tRestClient in a job : in the tRestClient, I can set custom headers in the "Advanced settings", but when I try to set accept and content-type, the content-type is overriden by the component, and I get 2 values for the accept (application/json and application/json;odata=verbose)</description>
      <pubDate>Sat, 16 Nov 2024 10:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200229#M2780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200230#M2781</link>
      <description>Hello&lt;BR /&gt;using Mediation Routes you should be able to set the CamelContentType header&lt;BR /&gt;g.</description>
      <pubDate>Tue, 23 Feb 2016 13:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200230#M2781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200231#M2782</link>
      <description>Hi gusto2,
&lt;BR /&gt;Could you explain a bit more ?
&lt;BR /&gt;I am using mediation routes. I have tried several ways to set those headers, but they always get overriden by the cCXFRS component...</description>
      <pubDate>Tue, 23 Feb 2016 14:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200231#M2782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200232#M2783</link>
      <description>Hi, 
&lt;BR /&gt;As far as tRestClient is concerned, I can not reproduce the duplication of Content-Type at Apache CXF level which is used internally by tRESTClient. Specifically, tRESTClient does webClient.type(contentType) and then it iterates over all the extra headers and calls webClient.header(name, value). I created a local test and was able to update Content-Type.&amp;nbsp; 
&lt;BR /&gt;Accept is accumulating the values, but it can contain multiple values. 
&lt;BR /&gt;Can you try setting Accept to ANY, but also to a specific value in the extra headers ? You will get a wildcard media type followed by a concrete type, which is reasonable, example, browsers always include a wildcard alongside more concrete types though browsers do allocate a low 'qs' to a wildcard 
&lt;BR /&gt;Try it please, Sergey</description>
      <pubDate>Tue, 23 Feb 2016 15:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200232#M2783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-23T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200233#M2784</link>
      <description>Hi Sergey,
&lt;BR /&gt;Thanks for your answer. I had already tried that.
&lt;BR /&gt;Unfortunately, I am using Sharepoint REST API, and it seems to be extra "careful" about the value of the accept header. It wants to get "application/json;odata=verbose", and nothing else (I could verify that using another rest client, I always get a 406 error). So your solution does not work in my specific use case. Although I am pretty sure it can work in other cases.</description>
      <pubDate>Wed, 24 Feb 2016 14:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200233#M2784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-24T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200234#M2785</link>
      <description>Hi, 
&lt;BR /&gt;is there any progress regarding this topic? 
&lt;BR /&gt;I'm also having a cCXFRS -&amp;gt; cCXRRS -&amp;gt; cProcessor route in mediation 
&lt;BR /&gt;When checking the headers in cProcessor after getting/forwarding the request to the target system, there is no Content-Type filled in. Even if it is filled in manually in cProcessor (exchange.getIn().setHeader("Content-Type","application/zip") 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;, the final response raw data does have this parameter overriden to "Content-Type: application/octet-stream" and all the other parameters are gone. 
&lt;BR /&gt;So far, I've managed to make a workaround in Integration perspective, with a job that looks like: 
&lt;BR /&gt;tRESTRequest -&amp;gt; tJavaRow -&amp;gt; tFileFetch -&amp;gt; tFileInputRaw -&amp;gt; tRESTResponse 
&lt;BR /&gt;and on the tRESTResponse component, in the Component -&amp;gt; Advanced settings, I've added multiple Response headers, which appear in the final response of the service.</description>
      <pubDate>Wed, 08 Jun 2016 14:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200234#M2785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-08T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS override content-type and accept headers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200235#M2786</link>
      <description>Hi,
&lt;BR /&gt;I am having a similar issue. I am sending custom headers from Salesforce. Google Chrome Rest Client will see them correctly but when doing the GET request with tRestClient component the custom headers won't appear on response header. I have tried adding them into HTTP headers section without any result.
&lt;BR /&gt;Any glues how this should work?
&lt;BR /&gt;Regards
&lt;BR /&gt;Peter&amp;nbsp;</description>
      <pubDate>Mon, 19 Dec 2016 21:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-override-content-type-and-accept-headers/m-p/2200235#M2786</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-12-19T21:04:35Z</dc:date>
    </item>
  </channel>
</rss>

