httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: Port of the actual request
Date Tue, 22 Oct 2002 19:39:56 GMT
* Christian Kruse wrote:

> I've got a little question: is it possible to get the port from which
> the actual request came? I'm asking for Apache 1.3.x and Apache 2.x.
> Answers would be nice...

If you wanna take care of the UseCanonicalName setting, you just may use
ap_get_server_port. If you want to get a more specific results, simply
look into that function.

ap_get_server_port is defined in src/main/http_core.c (1.3) and
server/core.c (2.0) 

HTH, nd
-- 
package Hacker::Perl::Another::Just;print
qq~@{[reverse split/::/ =>__PACKAGE__]}~;

#  André Malo  #  http://www.perlig.de  #

Mime
View raw message