urllib2.request_host()

urllib2.request_host(request)[source]

Return request-host, as defined by RFC 2965.

Variation from RFC: returned value is lowercased, for convenient comparison.