+  HandyCache форум
|-+  Главная категория» English forum» SSL Handling check
Имя пользователя:
Пароль:
Страниц: [1]   Вниз
  Отправить эту тему    Печать  
Автор Тема: SSL Handling check  (Прочитано 3291 раз)
0 Пользователей и 1 Гость смотрят эту тему.
truefriend-cz
Постоялец
***

Репутация: +3/-1
Offline Offline

Сообщений: 118


« : 04 июля 2017, 11:02:31 »

Hi users. I testing script for check SSL handling but i have problem apply:

Код:
if hc.ssl_handling == "on" then
hc.put_msg(1, 'SSL ON')
else
hc.put_msg(1, 'SSL OFF')
end

Output is only SSL OFF

Variant with hc.ssl_handling_on or hc.sslhandling_on it also does not work.
How i can use?
Сообщить модератору   Записан
truefriend-cz
Постоялец
***

Репутация: +3/-1
Offline Offline

Сообщений: 118


« Ответ #1 : 06 июля 2017, 02:59:57 »

I modify script by documentation to:

Код:
if hc.ssl_handling_enabled == "true" then
hc.put_msg(1, 'Yes')
else
hc.put_msg(1, 'No')
end

but no returns the status of processing options SSL. (version with on and off no working)
What is wrong?
Сообщить модератору   Записан
mai62
Автор HC
*****

Репутация: +226/-4
Offline Offline

Сообщений: 6383


« Ответ #2 : 06 июля 2017, 13:35:11 »

I don't know which documentation you looked. In the file HCExtensions.html a usage example.
Код:
en=hc.ssl_handling_enabled('https://mail.ru', 'Boss')
hc.ssl_handling_enabled is not a variable. hc.ssl_handling_enabled is a function. Therefore, it is necessary to use
Код:
if hc.ssl_handling_enabled() == true then
The word true should be without quotes. With quotes you get the string. And the function returns a Boolean value.
Сообщить модератору   Записан
truefriend-cz
Постоялец
***

Репутация: +3/-1
Offline Offline

Сообщений: 118


« Ответ #3 : 07 июля 2017, 12:17:45 »

Thank you, it is solving.
Сообщить модератору   Записан
hc.addict
Новичок
*

Репутация: +1/-0
Offline Offline

Сообщений: 21


« Ответ #4 : 24 ноября 2017, 20:19:47 »

I don't know which documentation you looked. In the file HCExtensions.html a usage example.
Код:
en=hc.ssl_handling_enabled('https://mail.ru', 'Boss')
hc.ssl_handling_enabled is not a variable. hc.ssl_handling_enabled is a function. Therefore, it is necessary to use
Код:
if hc.ssl_handling_enabled() == true then
The word true should be without quotes. With quotes you get the string. And the function returns a Boolean value.

@mai62

In what particular event this code is applicable.

Greetings.
Сообщить модератору   Записан
Страниц: [1]   Вверх
  Отправить эту тему    Печать  

 
Перейти в: