[drupal-devel] [feature] RSS Feeds behind Firewall

jhefmv24 drupal-devel at drupal.org
Fri Feb 4 08:51:55 UTC 2005

 Project:      Drupal
 Version:      4.5.2
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jhefmv24
 Updated by:   jhefmv24
 Status:       patch
 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?


Previous comments:

May 19, 2004 - 13: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:

switch ($uri['scheme']) {
  case 'http':
     //$fp = @fsockopen($uri['host'], ($uri['port'] ? $uri['port']
: 80), $errno, $errstr, 15);


//use proxy settings
    $fp = @fsockopen('proxy2', '8080');

And then create the request by change from:

$request = "$method $path HTTP/1.0\r\n";


$request = "$method ".$uri['scheme']."://".$uri['host'].$path."

And comment out the lines:

$request .= implode("\r\n", $defaults);


February 2, 2005 - 07: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.


February 4, 2005 - 12: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 - 12: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 - 12: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 - 12: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 - 16: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.

View: http://drupal.org/node/7881
Edit: http://drupal.org/project/comments/add/7881

More information about the drupal-devel mailing list