Solved

rss news feed over https

Posted on 2014-01-06
5
719 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
  • 3
  • 2
5 Comments
 
LVL 109

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 109

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 109

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

809 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