Project

General

Profile

"Mobile friendly" version in Wt

Added by Pierluigi Vicinanza almost 10 years ago

Hello,

I have a C app with Wt running on it and serving web pages. So far so good.

What I'd like to know is if it's possible from inside my app to detect what kind of client is asking for a connection and if, say for example an iPhone, is asking for it, "produce" a "mobile friendly" version of my web pages.

If possible, what would be the "best practice" for my case?

I guess something inside the Wt::Http namespace might work for me, but I thought better to ask Wt "gurus" first ;)

Thank you!


Replies (2)

RE: "Mobile friendly" version in Wt - Added by Wim Dumon almost 10 years ago

You can query the agent from WEnvironment.

BR,

Wim.

RE: "Mobile friendly" version in Wt - Added by Pierluigi Vicinanza almost 10 years ago

Exactly what I was looking for! Thank you!

    (1-2/2)