Solved

rss news feed over https

Posted on 2014-01-06
5
733 Views
Last Modified: 2014-01-07
My website is  a https based site with a sealed certificate, I want to be able to extract news from the public news feed (i.e. BBC) but that is not possible as these feeds are http based.
I have searched alot and I found many solutions as :
    1- Download the contents first to your server and then display it to your serve.
     2- Configure the apache as proxy.
 My problems with these solutions are:
     1- They are not properly explained.
     2- The most important I do not know which solution has less security risk.
   Any advice please?
0
Comment
Question by:Ashraf Hassanein
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39759172
Please post a link to one of the RSS feeds you want to consume.  I think I can show you a strategy that will be workable.

If you want to learn a little more about RSS, this article may be enlightening.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_5356-Real-Simple-Syndication-RSS-with-a-Single-PHP-Script.html
0
 

Author Comment

by:Ashraf Hassanein
ID: 39759548
Hi Ray,
   Here is a sample link of what I want (My list is a bit more :-) ) :
           http://feeds.bbci.co.uk/news/rss.xml#
   What is the secured way to do so?
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39759570
"Secured" is a loaded term, with many subtle and layered aspects.  FWIW, Information Systems Security is a full time, four year college major at the University of Maryland.

RSS is nothing more than a specialized subset of XML.  The specification celebrated its 10th birthday last year.  It is available online here:
http://cyber.law.harvard.edu/rss/rss.html

You can read the RSS feed with cURL.  You can turn it into an object with SimpleXML and then you can parse it very easily.  You can republish it in whole or in part by simply writing the XML document to a flat file on your server and putting a link online.
0
 

Author Comment

by:Ashraf Hassanein
ID: 39763531
Hi Ray, As usual you are always correct the curl worked with me thanks for your help.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39763571
Great!  Thanks for the points and thanks for using EE, ~Ray
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question