Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sheetal1 on
Thanks for helping me.
I am trying the get the Newspaper headline on my website.
from the link: http://timesofindia.indiatimes.com/rssfeedsdefault.cms
I attached the modified common.inc file .
I have done some changes in common.inc from the this link:http://drupal.org/node/7881
I have tried the following code too. But still not working.
switch ($uri['scheme']) {
case 'http':
//$fp = @fsockopen($uri['host'], ($uri['port'] ? $uri['port']
: 80), $errno, $errstr, 15);
into:
//use proxy settings
$fp = @fsockopen('proxy2', '8080');
And then create the request by change from:
$request = "$method $path HTTP/1.0\r\n";
Into:
$request = "$method ".$uri['scheme']."://".$uri['host'].$path."
HTTP/1.1\r\n";
And comment out the lines:
$request .= implode("\r\n", $defaults);