Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, 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: 4566
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 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: 4566
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 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