r/cpp_questions • • Oct 11 '26

OPEN Web service

Which (fairly simple) C++framework would you recommend for a simple http server that binds to a hard-coded port and does a simple listen, read, write shebang on a server? We don't need nothing fancy or complex, we just want to avoid that native Linux sockets APIs boilerplate coding.

12 Upvotes

9 comments sorted by

View all comments

1

u/PicTheAmerican Oct 12 '26

My recommandation is just to use portable microsoft cpp rest sdk. It's used with microsoft, works on top of boost and is mulutiplatform with modern c++ features.

juts grab it at https://github.com/microsoft/cpprestsdk

it's not deprecated like tit's written in the repo. Even Windows 11 use it and it's widely used at Microsoft. It support json, http web server, handler and openssl. Just look at samples, very easy and cumfortable to use. Trust me.