tags:

views:

29

answers:

1

Is there a HTTP environment variable I can use to work this out?

A: 

Hi Mr Foo Foo,

What are you using at server side. If you are using java servlet then you can get URL information as follow:

String scheme = request.getScheme(); String serverName = request.getServerName(); int portNumber = request.getServerPort();

Jprogyog
I looked deeper into the Request object in my environment and there is a secure flag set on the Request object - thanks.
Mr Foo Foo