- use gethostname() if available in http_build_url()