Jump to content

uniURLFrame with SSL


Nirlan

Recommended Posts

Delphi 10 Berlin

Unigui 0.99.96.1335

 

I have an application that uses a uniURLFrame with the following command in oncreate:
 
This is working normally, but when you enable the SSL option on the ServerModule nothing is displayed in the frame.
 
The application is already in production and running normally with SSL enabled, with the exception of displaying the html page in the UniURLFrame.
 
Thanks for any help.
Link to comment
Share on other sites

show console, i think you must have the reason of this block frame.

 

try this if possible

uniurlframe1.url := TranslateUrlToCurProt('http://www.skyfalcon.com.br/...');

function TUniMainModule.TranslateUrlToCurProt(aUrl : string):string;
begin
  if UniSession.SSL then
  begin
    result:= stringreplace(aUrl, 'http://','https://',[rfignorecase]);
  end
  else
  begin
    result:= stringreplace(aUrl, 'https://','http://',[rfignorecase]);
  end;
end;
Link to comment
Share on other sites

Unfortunately this will not work because there is no https page: '' https: //www.skyfalcon.com.br / ... '

 

I need is that the UniURLFrame displays the page '' http: //www.skyfalcon.com.br/ ... '  with UniSession.SSL enabled.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...