Support for HTTP Proxy when getting RSS feeds

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Support for HTTP Proxy when getting RSS feeds

Postby christofb » Wed Jan 26, 2011 5:35 pm

Hi all,

my PivotX installation is behind a firewall and has to use a HTTP proxy to connect to external sites. So I had the problem that the RSS feeds for latest news and forum posts on the dashboard could not be displayed. Setting http_proxy in the php environment did not help. The only solution I could find was to edit includes/magpie/rss_fetch.inc and add the following lines in function _fetch_remote_file after "$client = new Snoopy();":
$client->proxy_host="<Proxy-Host>";
$client->proxy_port="<Proxy-Port>";

Those changes will of course be overwritten when an update of PivotX is installed.

The same holds true for the Check integrity function of extension PivotX Tools. To be able to download the checksum files from the PivotX server I had to edit extensions/pivotx_tools/hook_pivotx_tools.php

I think PivotX should have configuration options with which to set proxy host and port and those options should always be used when HTTP requests are made using the Snoopy class.

Or am I missing something and is it much more simple?

Kind regards,
Christof
christofb
 
Posts: 8
Joined: Thu Sep 09, 2010 3:17 pm

Return to 2.x Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron