#2 mORMot 1 » Is it possible to respond outside OnRequest event for THttpApiServer? » 2022-04-13 04:07:19

assistant
Replies: 2

Hi all,
I used a THttpApiServer to build an http server.
In most of demos, we write Ctxt.OutContent to respond within OnRequest event handle.
But now, I would like to do something like these steps:
1. Exit OnRequest event handle (of cause taking some needed params of this Ctxt).
2. Do something that will take a long time, and prepare something to be responded. (e.g. ask for data from another server)
3. Respond something via the Ctxt.

Is it possible?
(As I knew, ICS is able to do these things, of cause ICS is a single thread component)

Thanks
Regards

#3 Re: mORMot 1 » How to setup the TLS version for THttpApiServer? » 2022-04-12 06:33:38

Hi Daniel!
I'm using Windows7. As you have said, TLS 1.2 is supported by OS.
I modified some register items in regedit to enable TLS 1.2, It works.
Thanks a lot for reminding me.
Regards

#4 mORMot 1 » How to setup the TLS version for THttpApiServer? » 2022-04-12 03:42:02

assistant
Replies: 2

Hi everyone!
    I'm a beginner of mORMot. I just built a Https server with THttpApiServer and added a url like this: fServer.AddUrl('root','443',true,'+',true);
    Then I used an https client to visit this sverver, it worked.
    But when I use FireFox browser to visit this sverver ,it did not work and prompt: errcode: SSL_ERROR_UNSUPPORTED_VERSION, This website may not support TLS 1.2.
    I thought mORMot support TLS 1.2 by default.
    So my question is : How do I setup my server to support TLS 1.2?

    Thanks very much!
    Best Regards.

Board footer

Powered by FluxBB