Project

General

Profile

Access Wt::Http::Request

Added by Ehsan Mahdavi about 4 years ago

Hi

Is there any way in Wt to access every single http request that is sent from client?

regards


Replies (2)

RE: Access Wt::Http::Request - Added by Roel Standaert about 4 years ago

For a WApplication: not really, no. The requests are all handled in Wt's internals. If you just want to do something on every event, there's WApplication::notify: https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#a4a6f167bea94aefa8ba24f914c2fbee5

RE: Access Wt::Http::Request - Added by Ehsan Mahdavi about 4 years ago

I Think I need them!

Look,

WEnvironment variables are likely to be initialized at the begging of the session. However I have a situation that my clients are changing their source addresses while the session continues. No new session is created. No new WApplication is created. No new WEnvironment is created. But I need the new IP of the client!!!!

How can I obtain that?

I need some other things either, which I think I need information in the requests or even TCP connections.

Any recommendations?

regards

    (1-2/2)