[ 
https://issues.apache.org/jira/browse/CAMEL-9948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294897#comment-15294897
 ] 

James Netherton commented on CAMEL-9948:
----------------------------------------

I've been experimenting with this. Maybe there's no work needed here. Standard 
redirects seem to work fine.

Turns out in my test scenario the redirect was a _protocol redirect_. E.g the 
server was wanting to redirect the URI scheme from http to https. By default, 
Java (HttpURLConnection etc) does not automatically follow protocol redirects 
for security reasons. Therefore, in this situation we should probably leave it 
for the developer to specify the correct HTTP URI scheme on the rss endpoint 
config.



> camel-rss does not handle HTTP redirects
> ----------------------------------------
>
>                 Key: CAMEL-9948
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9948
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-rss
>            Reporter: James Netherton
>            Priority: Minor
>
> Stumbled across this through a test case that was hitting a feed which 
> returned an HTTP 301.
> The code attempts to process the HTTP response body, which will likely 
> contain non-parsable content like '301 Moved Permanently' etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to