Hi,

It seems to be right, both of camel-rss and camel-atom doesn't allow to 
configure request headers other than basic auth. You may want to file a JIRA 
for it.

Or I haven't tried yet though, it seems possible to use camel-http4 as a 
polling consumer which accepts custom HttpClientConfigurer. The default accept 
header could be set on HttpClientBuilder with it.

Thanks,
Tomo

On 03/28/2017 04:23 AM, jspyeatt wrote:
I'm trying to tap into an atom feed that is requiring the Accept request
header to either be application/xml or application/atom+xml.

Is there a way to limit the atom feed definition in the uri to specify only
those two values? Currently the default for the atom feed appears to be

Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Which is way to loose for my requests.

Looking at the code for AtomUtils it doesn't appear that parseDocument()
allows that.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Is-there-any-way-to-limit-the-values-for-Accept-header-for-camel-atom-and-camel-rss-tp5796439.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to