Claes Wikström wrote:
> Vlad Skvortsov wrote:
>> My appmod needs to know (for each request):
>> * what port number has the client connection been accepted on;
>> * whether the connection is SSL'd or not.
>> It looks like there is no way to get this information through Arg
>> record. Is that correct?
> Step 1, determine scheme. Several ways do to this.
> One is:
> Url = yaws_api:request_url(Arg),
> The Url#url.scheme is either of "http" or "https"
> Once you know that you can do either of
Great, thanks! Though I need a local port, not the peer's one, so
inet:port(Arg#arg.clisock) will work (not tested with SSL though).
Vlad Skvortsov, vss@..., http://vss.73rus.com