_ROOT Version:6.14.00
_Platform:Ubuntu 16.04.4 LTS
_Compiler:gcc version 5.4.0
Dear Rooters,
I try in a root session:
TGHtmlBrowser ccc("https://root.cern.ch")
and get a widget with:
RHTML cannot display the Webpage
…
with firefox the page works and TGHtmlBrowser
works with files.
Cheers
Otto
Try with a URL without https, if it works then that means you’re missing OpenSSL…
root [0] TGHtmlBrowser ccc("https://root.cern.ch")
(TGHtmlBrowser &) Name: fHtmlBrowser2 Title: very simple html browser
So, you now confirm that ROOT cannot use “https”, even though it does have “ssl” among its features:
root-config --features | grep -i ssl
root-config --has-ssl
Wait, I’m rebuilding with ssl…
And all I can say for now is that it was the exact symptom I had on Windows when ROOT was built without OpenSSL…
this works for me also, with roots webpage (http://roo…)
I get: Moved permanently
clicking “here” I get same as before so smells like missin SSL
Otto
Oh I forgot:
root-config --has-ssl
yes
Otto
OK, you’re right, it doesn’t work. I’ll try to debug it
After looking back at the TGHtml code, I can confirm that https is not supported. I’m checking what amount of work it is to support https, I’ll keep you updated.
Cheers, Bertrand.
Hi Bertrand,
thank you for the answer.
I wouldnt care too much if root.cern.ch would work,
Cheers
Otto
Actually, more and more sites forbid http and enforce https.
The support for https will be added soon. It should be available in the next release.
Cheers, Bertrand.
Now commited in master (commit #55556e9)
Hi Bertrand,
thank you, https works now,
One thing:
Closing the browser or the session doesnt end quite smoothly.
This doesnt depend on https.
I add a traceback:
root_6_15_01.bt.gz (3.9 KB)
Cheers
Otto
Note that the problem that Otto describes now is not related to https. It exists also in old ROOT 5 versions (if the TGHtmlBrowser is created on the stack and you “close” its window, you’ll get “SIGSEGV” on ROOT’s exit, which would not appear if it was created on the heap).
Hi,
Thanks for the info, I have also seen this behavior and I’ll fix asap.
Cheers, Bertrand