--- class-http.php 2014-04-05 05:48:18.000000000 +0000 +++ class-http.php 2014-07-23 18:50:41.460291267 +0000 @@ -923,8 +923,10 @@ if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n"; - else + else if ( $arrURL['port'] == 80 || $arrURL['port'] == 443 ) $strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n"; + else + $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n"; if ( isset($r['user-agent']) ) $strHeaders .= 'User-agent: ' . $r['user-agent'] . "\r\n";