Solved

rss news feed over https

Posted on 2014-01-06
5
679 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 108

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 108

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 108

Expert Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now