You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Roger Espel Llima <es...@iagora.net> on 2000/05/17 20:52:20 UTC

getting the hostname from a TransHandler

Hi, 

I need to get the "Host:" header sent by the client, from a
TransHandler.  Should I be using $r->header_in("Host"), or should I turn
UseCanonicalName off and then use $r->get_server_name?  

I'd rather do the first, and it works when I try it, but I'm also
thinking that PerlTransHandlers run before full header parsing, so
$r->header_in might not be recommended at that point... any clues?

-- 
Roger Espel Llima, espel@iagora.net
http://www.iagora.com/~espel/index.html