[drupal-devel] [feature] RSS Feeds behind Firewall
Anonymous
drupal-devel at drupal.org
Fri Feb 4 21:22:37 UTC 2005
Project: Drupal
Version: 4.5.2
Component: base system
Category: feature requests
Priority: normal
Assigned to: Anonymous
Reported by: jhefmv24
Updated by: Anonymous
Status: patch
Is there any way to hardcode my proxy server name? I can't seem to get
the patches to work. I just get a blank page after I try to update the
news feeds.
Anonymous
Previous comments:
------------------------------------------------------------------------
May 19, 2004 - 05:01 : jhefmv24
Attachment: http://drupal.org/files/issues/common.inc (37.11 KB)
I think the RSS feeds don't work if there is proxy server running. The
request/connection is somehow being blocked.
The connection should be made first to the proxy and once it is
established, then request can made.
I think the core function drupal_http_request() under
/includes/common.inc doesn't support this.
One workaround is change the code from:
<?php
switch ($uri['scheme']) {
case 'http':
//$fp = @fsockopen($uri['host'], ($uri['port'] ? $uri['port']
: 80), $errno, $errstr, 15);
?>
into:
<?php
//use proxy settings
$fp = @fsockopen('proxy2', '8080');
?>
And then create the request by change from:
<?php
$request = "$method $path HTTP/1.0\r\n";
?>
Into:
<?php
$request = "$method ".$uri['scheme']."://".$uri['host'].$path."
HTTP/1.1\r\n";
?>
And comment out the lines:
<?php
$request .= implode("\r\n", $defaults);
?>
------------------------------------------------------------------------
February 1, 2005 - 23:38 : Anonymous
Did this ever get taken care of in 4.5.2. I can't seem to get any feed
to work from behind a firewall. Getting error....
Failed to parse RSS feed Microsoft Security Info: 10060 A connection
attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because
connected host has failed to respond..
At home this same feed works fine, so I know it's not the feed.
Thanks,
SlackNet
------------------------------------------------------------------------
February 4, 2005 - 04:24 : jhefmv24
Attachment: http://drupal.org/files/issues/common.inc_4.patch (1.37 KB)
+1 on having a facility to modify proxy settings...
here's a patch of /includes/common.inc for drupal-4.4.2 version
------------------------------------------------------------------------
February 4, 2005 - 04:25 : jhefmv24
Attachment: http://drupal.org/files/issues/system.module_2.patch (956 bytes)
+1 on having a facility to modify proxy settings...
here's a patch of /modules/system.module for drupal-4.4.2 version
------------------------------------------------------------------------
February 4, 2005 - 04:31 : jhefmv24
Attachment: http://drupal.org/files/issues/common.inc_5.patch (1.35 KB)
patch for /includes/common.inc 4.5.2 version to facilitate rss feeds
behind firewall
------------------------------------------------------------------------
February 4, 2005 - 04:32 : jhefmv24
Attachment: http://drupal.org/files/issues/system.module_3.patch (1.03 KB)
patch of /modules/system.module 4.5.2 version to set proxy settings
------------------------------------------------------------------------
February 4, 2005 - 08:23 : Bèr Kessels
hi, tso small issues. one is described at: http://drupal.org/node/9706
The other is that the code is not "drupal compliant". Drupal developrs
are (luckily) very picky about spaces, indentation, etc.
------------------------------------------------------------------------
February 4, 2005 - 08:51 : jhefmv24
Attachment: http://drupal.org/files/issues/common.inc_6.patch (1.37 KB)
i forgot to remove my hardcoded proxy name.. sorry
Ber, which is not drupal compliant?
--
View: http://drupal.org/node/7881
Edit: http://drupal.org/project/comments/add/7881
More information about the drupal-devel
mailing list