0

I'm trying to build an https server on Android using Qt 6.3.0 since the qt module Qt HTTP Server is not available yet. Is it possible to code it from scratch? Is there any code that i can use or start with?

Thank you for your help.

speryem
  • 1
  • 2
  • Why do you need a server on android? – ניר Jul 18 '22 at 14:12
  • I need to access to an html file which is not local and without any internet connection – speryem Jul 18 '22 at 14:23
  • If you can use [Ktor](https://ktor.io/), then there are ways to embed the server in Android. Search for `android ktor server` on your favorite search tool, and you'll get various relevant results. – Martin Marconcini Jul 18 '22 at 14:40
  • I actually need to use Qt and C++ @MartinMarconcini – speryem Jul 18 '22 at 14:46
  • @speryem Wym "**access** HTML file"? just read it? you don't need server for this. Also there are plenty of C++ HTTP servers that are probably better than Qt. – ניר Jul 18 '22 at 14:55
  • @ניר I mean open an html file and read it, it contains webGL components so it's more complicated.. and i need to use Qt so i can add the server to an existing application developped with Qt – speryem Jul 18 '22 at 14:58
  • I think what you are looking for is [`WebEngineView`](https://doc.qt.io/qt-6/qml-qtwebengine-webengineview.html) – ניר Jul 18 '22 at 15:00
  • @ניר Unfortunetely, Qt WebEngine is not available on mobile platforms. It works only in macOS, Windows and on Linux but not on Android – speryem Jul 18 '22 at 15:05
  • so why can't you provide the link and open with native browser? – ניר Jul 18 '22 at 15:52
  • @ניר Because i want to have an independant and external application – speryem Jul 19 '22 at 08:37
  • I see... Anyways I can't see why Http server would help you, http server just handles requests and send responses it does not show html filed. – ניר Jul 19 '22 at 09:27

0 Answers0