« Return to Thread: identify running under ssl?

identify running under ssl?

by fess-4 :: Rate this Message:

Reply to Author | View in Thread


I want to make urls that point back to the current yaws server, which  
need to be https://  if the current request was made via ssl, but  
http otherwise.

what's the best way to identify if the current request was made via  
ssl.  my current strategy is to match to check if Arg#clisock matches  
{ sslsocket, _ , _ };  is that the best way?

any other tips on generating self referential urls?   I'm going with  
the the host header if available or falling back to the config'd  
server name.

Thanks.

-- fess
fess@...
626 771 0045 x 42

You've heard of studio 54,  it was the cool place to be.  This is  
like network 54.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

 « Return to Thread: identify running under ssl?