No, it seems my problem is that our corporate proxy server isn't honoring requests from the RSS extension (or that the extension isn't even trying to use the proxy in the first place) when it tries to pull in an external feed (say a CNN rss feed for example). It is fine with any internal feeds, as it doesn't have to make a proxy request.
My question was whether there was a way that MediaWiki (or the extenstion, etc) to use the proxy server? So is there a way to have the RSS feed go "hey this is an external request, go through the proxy".
Dave
-----Original Message-----
From: mediawiki-l-bounces@lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of MHart
Sent: Friday, January 12, 2007 8:06 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Wiki sitting behind a corporate firewall issues
What do you mean by "getting the wiki to see an external RSS source"?
Do you mean that external RSS readers can't see your wiki's feed?
MediaWiki
doesn't read external sources... but if you want an external feed reader (e.g. Google or Yahoo) to see your wiki, then you need an intermediate page that can be seen outside your intranet BUT can also read your intranet.
What we did is create a PUSH script that sends the RSS text to a server that sits in a DMZ. That server then has a URL that external feed readers can use to retrieve that text. The server in the DMZ can't read the RSS directly
because of the DMZ - although we could certainly open the firewall to allow it. However, we decided it was far safer to prevent a server in the DMZ from accessing the intranet, although it is open the other way around (intranet servers can access the DMZ server).
- MHart
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
On 18/01/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
My question was whether there was a way that MediaWiki (or the extenstion, etc) to use the proxy server? So is there a way to have the RSS feed go "hey this is an external request, go through the proxy".
Yes, at least assuming
* You've got the curl extension installed (it's available and simple to install for Windows, Unix and Linux, so no real excuse) * You're running a fairly recent version of MediaWiki * The RSS feed uses the MediaWiki-provided methods for getting the data, which it quite possibly doesn't
If all the above are satisfied, then setting $wgHttpProxy in LocalSettings.php should be adequate.
Note: We don't support proxy authentication at present. This seems like a sensible enough thing to add, and isn't exactly difficult.
Rob Church
Ok, I've verified the curl extension is running. I am using 1.8.3 MediaWiki, and I put $wgHttpProxy = true; into my LocalSetting.php file.
This is the extension I am using: http://meta.wikimedia.org/wiki/GISWiki/RSS
My PHP is extremely weak (I am working on learning it now), so I can't tell if the feed supports it or not. Would appreciate any additional guidance you can give.
Thanks! Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Rob Church Sent: Thursday, January 18, 2007 10:07 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Wiki sitting behind a corporate firewall issues
On 18/01/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
My question was whether there was a way that MediaWiki (or the extenstion, etc) to use the proxy server? So is there a way to have
the
RSS feed go "hey this is an external request, go through the proxy".
Yes, at least assuming
* You've got the curl extension installed (it's available and simple to install for Windows, Unix and Linux, so no real excuse) * You're running a fairly recent version of MediaWiki * The RSS feed uses the MediaWiki-provided methods for getting the data, which it quite possibly doesn't
If all the above are satisfied, then setting $wgHttpProxy in LocalSettings.php should be adequate.
Note: We don't support proxy authentication at present. This seems like a sensible enough thing to add, and isn't exactly difficult.
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 18/01/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
Ok, I've verified the curl extension is running. I am using 1.8.3 MediaWiki, and I put $wgHttpProxy = true; into my LocalSetting.php file.
$wgHttpProxy needs to be set to the value of your proxy server.
This is the extension I am using: http://meta.wikimedia.org/wiki/GISWiki/RSS
Well, that's coincidental - I was hacking up a later hacked-up copy of that damn extension the other day in order to iron out a couple of bugs for someone. As luck would have it, I've still got the magpie dependency files here, so I can examine them...
Magpie's fetch_rss() function, which the extension uses to do most of the fetching and parsing, appears to use a third-party PHP HTTP fetching library called Snoopy. This *does* appear to support proxies, but it seems to use curl binaries, which may or may not be available. I can't see any straightforward way to set the proxy settings to Snoopy via Magpie or the extension itself, so I suspect you'll have to manually set this - it'll be in magpie/extlib/Snoopy.class.inc, near the top of the class definition.
If this doesn't work out, then have another search around the web; there's more than one RSS aggregator extension for MediaWiki out there.
Rob Church
Rob,
Thanks for all the great info.
I've sent everything that I can find in "Snoopy.class.inc", and I fixed $wgHttpProxy.
Still no go....it just generates this error when I preview the page (local intranet feeds still pull fine):
Warning: Invalid argument supplied for foreach() in F:\WebServer\GeCWiki\extensions\rss.php on line 159 And Warning: Invalid argument supplied for foreach() in F:\WebServer\GeCWiki\extensions\rss.php on line 228
I've been digging around the web with Google, but so far I'm not really find any other decent extensions.
Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Rob Church Sent: Friday, January 19, 2007 12:50 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Wiki sitting behind a corporate firewall issues
On 18/01/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
Ok, I've verified the curl extension is running. I am using 1.8.3 MediaWiki, and I put $wgHttpProxy = true; into my LocalSetting.php
file.
$wgHttpProxy needs to be set to the value of your proxy server.
This is the extension I am using: http://meta.wikimedia.org/wiki/GISWiki/RSS
Well, that's coincidental - I was hacking up a later hacked-up copy of that damn extension the other day in order to iron out a couple of bugs for someone. As luck would have it, I've still got the magpie dependency files here, so I can examine them...
Magpie's fetch_rss() function, which the extension uses to do most of the fetching and parsing, appears to use a third-party PHP HTTP fetching library called Snoopy. This *does* appear to support proxies, but it seems to use curl binaries, which may or may not be available. I can't see any straightforward way to set the proxy settings to Snoopy via Magpie or the extension itself, so I suspect you'll have to manually set this - it'll be in magpie/extlib/Snoopy.class.inc, near the top of the class definition.
If this doesn't work out, then have another search around the web; there's more than one RSS aggregator extension for MediaWiki out there.
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Rob,
Thanks for getting back to me...here is what I found so far:
Ok, I've verified the curl extension is running. I am using 1.8.3 MediaWiki, and I put $wgHttpProxy = true; into my LocalSetting.php file.
This is the extension I am using: http://meta.wikimedia.org/wiki/GISWiki/RSS
My PHP is extremely weak (I am working on learning it now), so I can't tell if the feed supports it or not. Would appreciate any additional guidance you can give.
Thanks! Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Rob Church Sent: Thursday, January 18, 2007 10:07 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Wiki sitting behind a corporate firewall issues
On 18/01/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
My question was whether there was a way that MediaWiki (or the extenstion, etc) to use the proxy server? So is there a way to have
the
RSS feed go "hey this is an external request, go through the proxy".
Yes, at least assuming
* You've got the curl extension installed (it's available and simple to install for Windows, Unix and Linux, so no real excuse) * You're running a fairly recent version of MediaWiki * The RSS feed uses the MediaWiki-provided methods for getting the data, which it quite possibly doesn't
If all the above are satisfied, then setting $wgHttpProxy in LocalSettings.php should be adequate.
Note: We don't support proxy authentication at present. This seems like a sensible enough thing to add, and isn't exactly difficult.
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org