CGI网站,莫斯科ML问题

发布于 2024-08-25 12:16:55 字数 145 浏览 4 评论 0原文

我正在使用莫斯科机器学习与 CGI 相结合。我有一个计算简单算术的网站。当我按下提交按钮时,站点将重定向到输出计算结果的实际 CGI 文件。尽管在我的例子中,它以原始形式输出 html 代码,而不是实际以 html 形式输出结果。有人知道这个问题的解决方案吗? // 预先谢谢

i'm using Moscow ML combined with CGI. I have a site that calculates simple arithmetics. When the submit button i pushed, the site is redirected to the actual CGI file that outputs the result of the calculation. Although in my case, it outputs the html code in raw form rather then actually outputting the result in html. Anybody that knows a solution to this problem ? // thx beforehand

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁吢 2024-09-01 12:16:55

听起来您缺少内容类型 http 标头,例如:

Content-type: text/html; charset=utf-8

It sounds like you are missing a content-type http header such as:

Content-type: text/html; charset=utf-8
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文