CRM-13695 - cli - set $_SERVER['HTTP_HOST'] from CIVICRM_UF_BASEURL

 The issue I found is that the html2text package uses $_SERVER['HTTP__HOST']. Tinkering with packages seems to be a bad idea (and a number of them refer to $_SERVER['HTTP__HOST'] such as dompdf, html2text, kcfinder, Net, Pager, and tcpdf). The best bet is to change cli.class.php to default $_SERVER['HTTP__HOST'] to the server name contained in the CIVICRM_UF_BASEURL, rather than 'localhost' as is currently done. That would minimise the need to use the -s parameter.

See http://forum.civicrm.org/index.php/topic,30462.0.html