• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 835
  • Last Modified:

rss news feed over https

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
Ashraf Hassanein
Asked:
Ashraf Hassanein
  • 3
  • 2
1 Solution
 
Ray PaseurCommented:
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
 
Ashraf HassaneinAuthor Commented:
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
 
Ray PaseurCommented:
"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
 
Ashraf HassaneinAuthor Commented:
Hi Ray, As usual you are always correct the curl worked with me thanks for your help.
0
 
Ray PaseurCommented:
Great!  Thanks for the points and thanks for using EE, ~Ray
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now