Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

How to find out what protocol is used to connect to the site

Questions related to using nuBuilder Forte.
Post Reply
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

How to find out what protocol is used to connect to the site

Unread post by miasoft »

How to find out what protocol is used to connect to the site (SSL or not)?
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: How to find out what protocol is used to connect to the

Unread post by kev1n »

How do you connect? Can you give a little more detail?
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: How to find out what protocol is used to connect to the

Unread post by miasoft »

I have two different links:
for SSL - https://xx.xx.yy.zzz:8001/proj/
not SSL - http://xx.xx.yy.zzz:8000/proj/

The user knows which link to choose: SSL with full functionality or notSSL with minimum.
I would like to programmatically restrict functionality, issue messages, warnings, etc.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: How to find out what protocol is used to connect to the

Unread post by kev1n »

The JavaScript

Code: Select all

location.protocol
returns the protocol of the current URL.
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: How to find out what protocol is used to connect to the

Unread post by miasoft »

kev1n wrote:The JavaScript

Code: Select all

location.protocol
returns the protocol of the current URL.
Thanks, kev1n!
Wbr, miasoft.
Post Reply