PDA

View Full Version : gAjax RSS Feeds Displayer HTTPS?



KevT
03-18-2011, 08:17 AM
Hi,

First up..awesome work on the gAjax RSS Feeds Displayer. I've been happily hacking it into my php page with nice effect.

Thing is, that page running across a https connection online..so when I placed it there, Chrome and IE freaked out about the feed not being secure content. FF isn't as dramatic but that could change with later versions.

Oh. Forgot about that.

Just thought of a solution for this..so I'd appreciate some insight from you gurus out there: Maybe the solution for this is to pipe the unsecure contents from the google feed into a file on the webserver which then integrates this into the same php page? That way it's all https and there's no browser hissy-fits.

Would that be the way to go and does anyone have any idea how to do it?
Or..if that's just a silly/ineffcient idea, what would you suggest? :)

Thanks for the thoughts,
Kev

KevT
03-24-2011, 08:28 AM
I've been thinking..is it possible to get the google feed to come back directly as a secured feed so there isn't this "unsecured feed" in a secured page causing the problems described above?

I'd appreciate finding out the possible solutions if the above isn't possible.

Thanks,
Kev

KevT
03-29-2011, 01:48 AM
*bump* - any one have thoughts on the above? Thanks.

djr33
03-29-2011, 02:36 AM
There is no way to disable that warning (at least there shouldn't be). There may be some roundabout ways (such as PHP) to "re-secure" it.

But the simple answer is: can you just add "https" instead of "http" to the URL for the feed? Lots of servers are setup to serve identical content over both HTTP and HTTPS. If that doesn't work, then you'll need to find a workaround.

KevT
04-03-2011, 01:05 PM
Thanks for the thoughts!



But the simple answer is: can you just add "https" instead of "http" to the URL for the feed? Lots of servers are setup to serve identical content over both HTTP and HTTPS.

Nice simple fix idea..but...

In the above mentioned script..I've configured...
rssfeed.addFeed("Name of Feed", "https://www.place_of_feed.com/path/to/feed/feed.xml") //Specify "label" plus URL to RSS feed

..etc - all but one of my feeds didn't have a https equivalent so I tossed them. Even with the single feed which could go across https, the page will turned up an unsecured warning.

Any suggestions on your "There may be some roundabout ways (such as PHP) to "re-secure" it" idea?

Cheers :)

djr33
04-03-2011, 05:41 PM
I've never done this, but I expect it should be possible. What you will do is find a way to use PHP to request the contents of an RSS feed, then just output it also as an RSS feed (now secured, from your server). The only problem is that if RSS through HTTPS is still giving an error, you may have to find some other way. What you could try to do is use PHP to read RSS then output that as HTML rather than RSS and just include that PHP page. Start by finding out how to read RSS with PHP.

KevT
04-07-2011, 12:02 PM
djr33: thanks for the reply. Oh well..no simple solution for this I guess (that was the whole point of using gAjax)..unless there is some way of outputting the feed into a file on the web server then incorporating this into the secure page?
If so..are you aware of a way of either capturing the output from gAjax and turning into said file or hacking gAjax itself to output into a file?

Thanks again for thoughts. :)

djr33
04-07-2011, 06:27 PM
Sorry, but I think this might be a limitation with the script. I'm not that familiar with it, but from everything you've said it sounds like it just won't work like that using https. You can confirm this by using an HTTPS RSS feed from the same server as the HTTPS HTML page. If that doesn't work, then apparently this script can't work without a security warning.

KevT
04-10-2011, 05:26 AM
Oh well..thanks for the thoughts anyhow. Shame..was looking very promising otherwise. I could see the possibility of this working if I piped the output of gAjax into a file on the web server which then can be incorporated into the secured page but can't think of a way technically of dong this.

If anyone knows of a solution, I'd appreciate hearing about it but otherwise..thanks for reading & replying.

Cheers,
Kevin.

KevT
04-13-2011, 12:58 PM
Update (in case anyone is interest): have ended up using "Pausing RSS scroller" for the job (http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm)

Works a treat..only problem is that I lose the ability to aggregate a few feeds together to display. Shame..that is a very useful feature. That said..at least I can pipe in without FF or Chrome freaking out.

It would be a load of work to get this to aggregate several feeds together so I was wondering...anyone aware of an online service which does the aggregating so I can point the above reader to that single aggregated rss?

Cheers,
Kevin. :)