This really should be using drupal_http_request. In a secure hosting environment you'll often find that setting disabled as it is a popular entry point for attacks. http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ht...