任何用于 Web 编程的好的 C++ 库? [英] Any good c++ library for web programming?

查看:29
本文介绍了任何用于 Web 编程的好的 C++ 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上搜索,找到了 cgicc、rudeserver 和 Wt 等,但没有一个适合我的需求.我想要一个可以像 php 一样将所有请求数据解析为 get、post、cookie 和文件数组的库.

I searched the web, and found cgicc, rudeserver and Wt etc., but none of them suit my needs. I want a library that can parse all the request data to a get,post,cookie and file array, just like php does.

  • Cgicc 等使用 formentry 来获取表单数据,但使用起来太难了.
  • Wt 使用小部件来开发,我认为这不是很舒服.

我曾经使用 PHP 进行 Web 编程,但是当我知道 C++ 比 php 快得多时,我决定改用 C++.

I used to use PHP for web programming, but when I know that C++ is amazingly faster than php, I decide to use C++ instead.

有什么建议吗?提前致谢.

Any suggestions? thanks in advance.

推荐答案

我不明白为什么 Wt 不合适.(您可以使用 Wt 而不使用它的小部件",仅用于 HTTP 方面).

I don't understand why Wt don't fit. (you could use Wt without its "widgets", just for the HTTP aspect).

您可以制作一个 FastCGI 应用程序(它可以很好地适应许多现有的网络服务器).

You could make a FastCGI application (it would fit nicely into many existing web servers).

您还可以在 C++ 应用程序中嵌入一个 HTTP 服务器,使用一些 HTTP 服务器库,如 libonionlibmicrohttpd 或 poco

You could also embed an HTTP server inside your C++ application, using some HTTP server library like libonion, libmicrohttpd or the one inside poco

顺便说一句,PHP 有更好的替代品,例如 Opaocsigenkayalang(不需要 C++).

BTW, there are better alternatives to PHP like Opa, ocsigen, kayalang (without requiring C++).

这篇关于任何用于 Web 编程的好的 C++ 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆